From 8eec84478141ee986ed22523d3290f6cb98f7e4a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 24 Dec 2022 17:54:42 +0800 Subject: [PATCH] Scroll-to-top for Notifications --- src/pages/notifications.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index fc40265a..ba5a2760 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -292,7 +292,11 @@ function Notifications() { return (
-
+
{ + scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' }); + }} + >