Skip to content

Commit

Permalink
added pull to refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 31, 2024
1 parent a12a30c commit 1af3157
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -48,6 +50,12 @@ export default function RootLayout({
const queryClient = new QueryClient();
const router = useRouter();

PullToRefresh.init({
onRefresh() {
window.location.reload();
},
});




Expand Down

0 comments on commit 1af3157

Please sign in to comment.