diff --git a/src/layouts/common/backToTop/BackToTop.jsx b/src/layouts/common/backToTop/BackToTop.jsx index 0d10748..4b8068b 100644 --- a/src/layouts/common/backToTop/BackToTop.jsx +++ b/src/layouts/common/backToTop/BackToTop.jsx @@ -42,11 +42,8 @@ const BackToTop = (props) => { sx={{ position: 'fixed', bottom: theme.spacing(2), - right: theme.spacing(2), + left: theme.spacing(1), }} - container - justifyContent='center' - alignItems='center' id='footer'> { - event.preventDefault(); - const anchor = (event.target.ownerDocument || document).querySelector( - '#footer' - ); - - if (anchor) { - anchor.scrollIntoView({ behavior: 'smooth', block: 'center' }); - } -}; - const Header = () => { const theme = useTheme(); @@ -61,9 +50,8 @@ const Header = () => { + href='#about' + style={{ cursor: 'pointer' }}> About