From 7b981b6d16f52b43ebb872b6ecf23eeda2c12272 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Fri, 19 Jun 2026 14:47:09 +0530 Subject: [PATCH] refactor: simplify error screen layout and remove unused components - Removed the Alert component and its related imports to streamline the error display. - Adjusted the layout of the error screen for better responsiveness and visual clarity. - Updated button styles and structure for improved user interaction. --- surfsense_web/app/dashboard/page.tsx | 30 +++++++++------------------- 1 file changed, 9 insertions(+), 21 deletions(-) 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 ( -