File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
22import { IconButton } from "@mui/material" ;
33import { useEffect , useState } from "react" ;
44
5+ import { Tooltip } from "@components" ;
56import { useAppContext } from "@hooks" ;
67
78export const ScrollToTop = ( ) => {
@@ -21,9 +22,11 @@ export const ScrollToTop = () => {
2122
2223 return (
2324 < div className = "scroll-to-top" >
24- < IconButton className = "icon-btn" aria-label = "Scroll to top" onClick = { scrollToTop } >
25- < ArrowUpwardIcon sx = { { fontSize : "2rem" } } />
26- </ IconButton >
25+ < Tooltip title = "Scroll to top" >
26+ < IconButton className = "icon-btn" aria-label = "Scroll to top" onClick = { scrollToTop } >
27+ < ArrowUpwardIcon sx = { { fontSize : "2rem" } } />
28+ </ IconButton >
29+ </ Tooltip >
2730 </ div >
2831 ) ;
2932} ;
You can’t perform that action at this time.
0 commit comments