1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

#23 fixed lab post background

This commit is contained in:
Fedor Katurov 2021-03-22 11:17:52 +07:00
parent 80967ddfac
commit d5701b2e85
7 changed files with 5 additions and 6 deletions

View file

@ -30,7 +30,6 @@ const breakpoints: SwiperOptions['breakpoints'] = {
};
const LabImage: FC<IProps> = ({ node }) => {
const dispatch = useDispatch();
const history = useHistory();
const [controlledSwiper, setControlledSwiper] = useState<SwiperClass | undefined>(undefined);
@ -48,7 +47,6 @@ const LabImage: FC<IProps> = ({ node }) => {
const resetSwiper = useCallback(() => {
if (!controlledSwiper) return;
controlledSwiper.slideTo(0, 0);
setTimeout(() => controlledSwiper.slideTo(0, 0), 300);
}, [controlledSwiper]);
useEffect(() => {