Skip to content

Commit

Permalink
refactor: Remove unused useRouter import from SimpleDashboard and cle…
Browse files Browse the repository at this point in the history
…an up console log statements for clarity
  • Loading branch information
bramses committed Nov 15, 2024
1 parent a0210bc commit 6c4fb37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/SimpleDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -11,8 +11,6 @@ import ForceFromEntry from './ForceFromEntry';
import SearchModalBeta from './SearchModalBeta';

const SimpleDashboard = () => {
const router = useRouter();

const [randomEntry, setRandomEntry] = useState<any>(null);
const [comments, setComments] = useState<any[]>([]);

Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 6c4fb37

Please sign in to comment.