diff --git a/public/scroll-to-top-icon.svg b/public/scroll-to-top-icon.svg new file mode 100644 index 000000000..fd9b29dee --- /dev/null +++ b/public/scroll-to-top-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/client/layout/ScrollToTop.tsx b/src/components/client/layout/ScrollToTop.tsx index f1da36615..0aa8be48e 100644 --- a/src/components/client/layout/ScrollToTop.tsx +++ b/src/components/client/layout/ScrollToTop.tsx @@ -1,11 +1,14 @@ import React, { useEffect, useState } from 'react' -import { ArrowCircleUp } from '@mui/icons-material' +import Image from 'next/image' + import { Box } from '@mui/material' import theme from 'common/theme' const ScrollToTop = () => { + const scrollToTopButtonPath = '/scroll-to-top-icon.svg' + const [isVisible, setIsVisible] = useState(false) const toggleVisibility = () => { @@ -39,13 +42,7 @@ const ScrollToTop = () => { bottom: theme.spacing(2), }} onClick={scrollToTop}> - + Scroll to top button )}