нормально вопрос задай, не понятно нифига
Оке, сорян)
<Link to="/" activeClassName="active" exact>
Live map
</Link>
Есть линка, она не одна, в каждой линке своя иконка, я использую styled-components, вот компонент Link:
const Link = styled(NavLink)`
display: block;
padding: 10px 0;
padding-left: 36px;
display: flex;
align-items: center;
position: relative;
color: white;
font-size: 14px;
font-weight: 500;
letter-spacing: -0.2px;
line-height: 18px;
text-decoration: none;
background-repeat: no-repeat;
background-size: 20px;
background-position-x: 10px;
background-position-y: 9px;
background-image: url(${({ theme }) => theme.images.map});
&.active {
background-color: ${({ theme }) => theme.colors.blue};
&:after {
clear: both;
transform: translateY(-50%);
position: absolute;
left: 94%;
top: 50%;
width: 0;
height: 0;
content: '';
border-bottom: 7px solid transparent;
border-top: 7px solid transparent;
border-right: 10px solid #ffffff;
}
}
`;
Не могу понять, как можно зареплейсить иконку при активном классе