Skip to content

Commit

Permalink
chore: Add ScrollToTop component to GardenDaily page
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Aug 28, 2024
1 parent df868e5 commit ab90a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/[locale]/(auth)/dashboard/garden/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'react-calendar/dist/Calendar.css';
import { useRouter, useSearchParams } from 'next/navigation';
import { useCallback, useEffect, useState } from 'react';
import Calendar from 'react-calendar';
import ScrollToTop from 'react-scroll-to-top';

import Entry from '@/components/Entry';
import { getCache, invalidateCache, setCache } from '@/helpers/cache';
Expand Down Expand Up @@ -324,6 +325,7 @@ const GardenDaily = () => {
/>
))
)}
<ScrollToTop smooth />
</div>
);
};
Expand Down

0 comments on commit ab90a2d

Please sign in to comment.