mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
fixed image position on slider
This commit is contained in:
parent
362ae0a081
commit
0a0abba7f9
3 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ const BetterScrollDialog: FC<IProps> = ({
|
|||
const ref = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
disableBodyScroll(ref.current);
|
||||
disableBodyScroll(ref.current, { reserveScrollBarGap: true });
|
||||
|
||||
return () => enableBodyScroll(ref.current);
|
||||
}, [ref]);
|
||||
|
|
|
@ -4,7 +4,7 @@ import ReactDOM from 'react-dom';
|
|||
import * as styles from './styles.scss';
|
||||
import { IState } from '~/redux/store';
|
||||
import * as ACTIONS from '~/redux/modal/actions';
|
||||
import { DIALOG_CONTENT, IDialogProps } from '~/redux/modal/constants';
|
||||
import { DIALOG_CONTENT } from '~/redux/modal/constants';
|
||||
|
||||
const mapStateToProps = ({ modal }: IState) => ({ ...modal });
|
||||
const mapDispatchToProps = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue