[img]https://i.sstatic. net/659RLpGB.png[/img]
Как видите, он вводит «@fs» вместе с физическим путем. Вот мой соответствующий код:
Код: Выделить всё
import styled from 'styled-components';
import spinner from '../../images/spinner.svg';
const WaitSpinnerContainer = styled.div`
display: flex;
flex-direction: row;
align-items: center;
max-height: 100%;
background-image: url('${spinner}');
`;
Подробнее здесь: https://stackoverflow.com/questions/787 ... g-my-image
Мобильная версия