diff --git a/surfsense_web/app/dashboard/page.tsx b/surfsense_web/app/dashboard/page.tsx index 09ace6542..2b3463bb4 100644 --- a/surfsense_web/app/dashboard/page.tsx +++ b/surfsense_web/app/dashboard/page.tsx @@ -1,18 +1,16 @@ "use client"; import { useAtomValue } from "jotai"; -import { AlertCircle, Plus, Search } from "lucide-react"; +import { Plus, Search } from "lucide-react"; import { motion } from "motion/react"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { useEffect, useState } from "react"; import { searchSpacesAtom } from "@/atoms/search-spaces/search-space-query.atoms"; import { CreateSearchSpaceDialog } from "@/components/layout"; -import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { Card, - CardContent, CardDescription, CardFooter, CardHeader, @@ -25,29 +23,20 @@ function ErrorScreen({ message }: { message: string }) { const router = useRouter(); return ( -
+
- - -
- - {t("error")} -
- {t("something_wrong")} + + + {t("error")} + {message} - - - - {t("error_details")} - {message} - - - - @@ -91,7 +80,6 @@ export default function DashboardPage() { const router = useRouter(); const [showCreateDialog, setShowCreateDialog] = useState(false); - const t = useTranslations("dashboard"); const { data: searchSpaces = [], isLoading, error } = useAtomValue(searchSpacesAtom); useEffect(() => {