diff --git a/surfsense_web/app/dashboard/page.tsx b/surfsense_web/app/dashboard/page.tsx index f133d0c9c..77a74a7e7 100644 --- a/surfsense_web/app/dashboard/page.tsx +++ b/surfsense_web/app/dashboard/page.tsx @@ -7,7 +7,6 @@ import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; -import { toast } from "sonner"; import { deleteSearchSpaceMutationAtom } from "@/atoms/search-spaces/search-space-mutation.atoms"; import { searchSpacesAtom } from "@/atoms/search-spaces/search-space-query.atoms"; import { currentUserAtom } from "@/atoms/user/user-query.atoms"; @@ -38,7 +37,6 @@ import { } from "@/components/ui/card"; import { Spotlight } from "@/components/ui/spotlight"; import { Tilt } from "@/components/ui/tilt"; -import { authenticatedFetch } from "@/lib/auth-utils"; /** * Formats a date string into a readable format @@ -65,7 +63,7 @@ const LoadingScreen = () => { animate={{ opacity: 1, scale: 1 }} transition={{ duration: 0.5 }} > - + {t("loading")} {t("fetching_spaces")} @@ -101,7 +99,7 @@ const ErrorScreen = ({ message }: { message: string }) => { animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }} > - +
@@ -185,21 +183,21 @@ const DashboardPage = () => { return ( - -
-
- -
-

{t("surfsense_dashboard")}

-

{t("welcome_message")}

+ +
+
+ +
+

{t("surfsense_dashboard")}

+

{t("welcome_message")}

-
+
@@ -207,18 +205,18 @@ const DashboardPage = () => {
-

{t("your_search_spaces")}

+

{t("your_search_spaces")}

-
-
+
{searchSpaces && searchSpaces.length > 0 && searchSpaces.map((space) => ( @@ -295,14 +293,14 @@ const DashboardPage = () => {
-

{space.name}

+

{space.name}

{!space.is_owner && ( - + {t("shared")} )}
-

+

{space.description}

@@ -334,8 +332,8 @@ const DashboardPage = () => {
-

{t("no_spaces_found")}

-

{t("create_first_space")}

+

{t("no_spaces_found")}

+

{t("create_first_space")}

- - + +
-

{user.name}

-

{user.email}

+

{user.name}

+

{user.email}

- router.push(`/dashboard/api-key`)}> - + router.push(`/dashboard/api-key`)} className="text-xs md:text-sm"> + API Key - - + + Log out