From 1af315772aa807fb6e7c7a98d4101d7192815ec5 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Sun, 31 Mar 2024 16:56:40 +0100 Subject: [PATCH] added pull to refresh --- src/app/layout.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d3022a4..39bce43 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -32,6 +32,8 @@ import { sepolia } from 'viem/chains'; import BottomNavbar from './components/BottomNav/BottomNav'; import AuthPage from './components/AuthPage/AuthPage'; +import PullToRefresh from 'pulltorefreshjs'; + export default function RootLayout({ @@ -48,6 +50,12 @@ export default function RootLayout({ const queryClient = new QueryClient(); const router = useRouter(); + PullToRefresh.init({ + onRefresh() { + window.location.reload(); + }, + }); +