Skip to content

Commit

Permalink
Rearange scroll to top image attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Jul 28, 2024
1 parent 6da40a4 commit 3593da4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/client/layout/ScrollToTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ 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 = () => {
Expand Down Expand Up @@ -43,7 +42,7 @@ const ScrollToTop = () => {
bottom: theme.spacing(2),
}}
onClick={scrollToTop}>
<Image alt="Scroll to top button" src={scrollToTopButtonPath} width={64} height={64} />
<Image src={scrollToTopButtonPath} width={64} height={64} alt="Scroll to top button" />
</Box>
)}
</div>
Expand Down

0 comments on commit 3593da4

Please sign in to comment.