Skip to content

Commit

Permalink
fix: Remove unused imports and props to fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
while-basic committed Dec 3, 2024
1 parent 7387560 commit 94dd8c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { useEffect, useState } from "react"
import { WelcomeDialog } from "@/components/welcome-dialog"
import { Card } from "@/components/ui/card"
import { useAuth } from "@/lib/auth-context"
import { ProtectedRoute } from "@/components/auth/protected-route"
import { VisitorCounter } from "@/components/visitor-counter"
Expand Down Expand Up @@ -203,7 +202,7 @@ export default function DashboardPage() {

{/* Bottom Grid */}
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6">
<RecentUsers users={convertToUsers(recentUsers)} loading={loading} />
<RecentUsers users={convertToUsers(recentUsers)} />
<VisitorCounter />
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions components/dashboard/recent-users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ export interface User {

interface RecentUsersProps {
users: User[]
loading?: boolean
}

export function RecentUsers({ users, loading = false }: RecentUsersProps) {
export function RecentUsers({ users }: RecentUsersProps) {
return (
<Card className="p-6">
<h2 className="text-xl font-semibold mb-4">Recent Users</h2>
Expand Down
1 change: 0 additions & 1 deletion components/root-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import localFont from "next/font/local"
import "@/styles/mdx.css"
import Navbar from "@/components/navbar"
import { personSchema, projectsSchema } from '../app/schema'
import { LoadingScreen } from "@/components/loading-screen"
import { usePageView } from "@/hooks/use-page-view"

Expand Down

0 comments on commit 94dd8c5

Please sign in to comment.