aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-17 02:28:20 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-17 02:28:20 +0300
commit0b13917c6200e9d743582bd2aa185f5fef573977 (patch)
treebccad0509f75491ada5cc1fb151d74f45e58569f
parentCloses Select Menu On Click (diff)
Shows Pointer On Scroll Button
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--src/components/ScrollToTop.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/ScrollToTop.tsx b/src/components/ScrollToTop.tsx
index 2c5e9ca..231c9e8 100644
--- a/src/components/ScrollToTop.tsx
+++ b/src/components/ScrollToTop.tsx
@@ -59,8 +59,10 @@ class ScrollToTop extends React.Component {
if (window.pageYOffset > 250) {
last_ref.current.style.opacity = "1";
+ last_ref.current.style.cursor = "pointer";
} else {
last_ref.current.style.opacity = "0";
+ last_ref.current.style.cursor = "default";
}
}