From 6c4fb372c784f675ca5fb09a4145d551d7520827 Mon Sep 17 00:00:00 2001 From: Bram Adams <3282661+bramses@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:38:32 -0500 Subject: [PATCH] refactor: Remove unused useRouter import from SimpleDashboard and clean up console log statements for clarity --- src/components/SimpleDashboard.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/SimpleDashboard.tsx b/src/components/SimpleDashboard.tsx index af42067..f4bd0df 100644 --- a/src/components/SimpleDashboard.tsx +++ b/src/components/SimpleDashboard.tsx @@ -2,7 +2,7 @@ import { useUser } from '@clerk/nextjs'; import Link from 'next/link'; -import { useRouter, useSearchParams } from 'next/navigation'; +import { useSearchParams } from 'next/navigation'; import { useEffect, useState } from 'react'; import { fetchByID, fetchRandomEntry } from '@/helpers/functions'; @@ -11,8 +11,6 @@ import ForceFromEntry from './ForceFromEntry'; import SearchModalBeta from './SearchModalBeta'; const SimpleDashboard = () => { - const router = useRouter(); - const [randomEntry, setRandomEntry] = useState(null); const [comments, setComments] = useState([]); @@ -266,7 +264,6 @@ const SimpleDashboard = () => { }), }); const data = await response.json(); - console.log('Log entries:', data); // if createdAt == updatedAt, say "added", else "updated" const log = data.data .map((entry: any) => {