diff --git a/apps/website/src/app/account/DeleteButton.tsx b/apps/website/src/app/account/DeleteButton.tsx index 9291ad9ce..473d11617 100644 --- a/apps/website/src/app/account/DeleteButton.tsx +++ b/apps/website/src/app/account/DeleteButton.tsx @@ -1,7 +1,7 @@ "use client"; -import { useRouter } from 'next-nprogress-bar'; import { TrashIcon } from "lucide-react"; +import { useRouter } from "next-nprogress-bar"; import { Trans } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/guilds/LoadGuildInput.tsx b/apps/website/src/app/admin/guilds/LoadGuildInput.tsx index f792634af..d2467b630 100644 --- a/apps/website/src/app/admin/guilds/LoadGuildInput.tsx +++ b/apps/website/src/app/admin/guilds/LoadGuildInput.tsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/homepage/demo-servers/CreateInput.tsx b/apps/website/src/app/admin/homepage/demo-servers/CreateInput.tsx index 2920891a7..b9c709b9f 100644 --- a/apps/website/src/app/admin/homepage/demo-servers/CreateInput.tsx +++ b/apps/website/src/app/admin/homepage/demo-servers/CreateInput.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/homepage/demo-servers/ListDemoServers.tsx b/apps/website/src/app/admin/homepage/demo-servers/ListDemoServers.tsx index 1f335468e..f51a270e3 100644 --- a/apps/website/src/app/admin/homepage/demo-servers/ListDemoServers.tsx +++ b/apps/website/src/app/admin/homepage/demo-servers/ListDemoServers.tsx @@ -1,6 +1,6 @@ "use client"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/homepage/demo-servers/[id]/DeleteButton.tsx b/apps/website/src/app/admin/homepage/demo-servers/[id]/DeleteButton.tsx index b4c639468..4fe99c9a2 100644 --- a/apps/website/src/app/admin/homepage/demo-servers/[id]/DeleteButton.tsx +++ b/apps/website/src/app/admin/homepage/demo-servers/[id]/DeleteButton.tsx @@ -1,7 +1,7 @@ "use client"; -import { useRouter } from 'next-nprogress-bar'; import { TrashIcon } from "lucide-react"; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/homepage/demo-servers/[id]/page.tsx b/apps/website/src/app/admin/homepage/demo-servers/[id]/page.tsx index 00b74827b..8c5746380 100644 --- a/apps/website/src/app/admin/homepage/demo-servers/[id]/page.tsx +++ b/apps/website/src/app/admin/homepage/demo-servers/[id]/page.tsx @@ -1,7 +1,7 @@ "use client"; -import { useRouter } from 'next-nprogress-bar'; import { ArrowLeftIcon, LoaderIcon } from "lucide-react"; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/users/LoadUserInput.tsx b/apps/website/src/app/admin/users/LoadUserInput.tsx index 4cbe4eecb..8ba41e79f 100644 --- a/apps/website/src/app/admin/users/LoadUserInput.tsx +++ b/apps/website/src/app/admin/users/LoadUserInput.tsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/users/RecentUser.tsx b/apps/website/src/app/admin/users/RecentUser.tsx index 52607a4a9..2264f0896 100644 --- a/apps/website/src/app/admin/users/RecentUser.tsx +++ b/apps/website/src/app/admin/users/RecentUser.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/users/[id]/DeleteButton.tsx b/apps/website/src/app/admin/users/[id]/DeleteButton.tsx index 8b0cdcf9e..6779acb2c 100644 --- a/apps/website/src/app/admin/users/[id]/DeleteButton.tsx +++ b/apps/website/src/app/admin/users/[id]/DeleteButton.tsx @@ -1,7 +1,7 @@ "use client"; -import { useRouter } from 'next-nprogress-bar'; import { TrashIcon } from "lucide-react"; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/admin/users/[id]/ManageUser.tsx b/apps/website/src/app/admin/users/[id]/ManageUser.tsx index 4782b9643..0e77468c4 100644 --- a/apps/website/src/app/admin/users/[id]/ManageUser.tsx +++ b/apps/website/src/app/admin/users/[id]/ManageUser.tsx @@ -1,8 +1,8 @@ import type { UserBadges } from "@mc/common/UserBadges"; import type { TFunction } from "i18next"; import { useEffect, useState } from "react"; -import { useRouter } from 'next-nprogress-bar'; import { SaveIcon } from "lucide-react"; +import { useRouter } from "next-nprogress-bar"; import { useTranslation } from "react-i18next"; import { BitField } from "@mc/common/BitField"; diff --git a/apps/website/src/app/dashboard/layout.tsx b/apps/website/src/app/dashboard/layout.tsx index c82cfd867..3e7b8ba48 100644 --- a/apps/website/src/app/dashboard/layout.tsx +++ b/apps/website/src/app/dashboard/layout.tsx @@ -2,7 +2,8 @@ import type React from "react"; import { useEffect, useMemo, useState } from "react"; -import { redirect, useParams } from "next/navigation"; +import { redirect, useParams } from "next/navigation"; +import { useRouter } from "next-nprogress-bar"; import { cn } from "@mc/ui"; @@ -12,7 +13,6 @@ import { Routes } from "~/other/routes"; import { api } from "~/trpc/react"; import DSelector from "../components/DSelector"; import { MenuContext } from "./Menu"; -import { useRouter } from "next-nprogress-bar"; export default function Layout({ children }: { children: React.ReactNode }) { const isAuthenticated = api.session.isAuthenticated.useQuery(); diff --git a/apps/website/src/app/dashboard/page.tsx b/apps/website/src/app/dashboard/page.tsx index 14d97bd9b..3c4b2c288 100644 --- a/apps/website/src/app/dashboard/page.tsx +++ b/apps/website/src/app/dashboard/page.tsx @@ -1,16 +1,16 @@ "use client"; import { useEffect } from "react"; -import { useParams } from "next/navigation"; -import { Trans } from "react-i18next"; +import { useParams } from "next/navigation"; +import { useRouter } from "next-nprogress-bar"; +import { Trans } from "react-i18next"; import { LinkUnderlined } from "@mc/ui/LinkUnderlined"; - -import { Routes } from "~/other/routes"; -import { api } from "~/trpc/react"; import { TypographyH3 } from "@mc/ui/TypographyH3"; import { TypographyH4 } from "@mc/ui/TypographyH4"; -import { useRouter } from "next-nprogress-bar"; + +import { Routes } from "~/other/routes"; +import { api } from "~/trpc/react"; export default function Page() { const router = useRouter(); @@ -33,7 +33,7 @@ export default function Page() { }, [hasAnythingSelected, router, userGuildsQuery.data]); return ( -
+
{!userGuildsQuery.isLoading && !userGuildsQuery.data?.userGuilds.size && ( <> @@ -50,7 +50,7 @@ export default function Page() { }} /> - + )}
); diff --git a/apps/website/src/app/error.tsx b/apps/website/src/app/error.tsx index c08a0b074..8ab82e4c7 100644 --- a/apps/website/src/app/error.tsx +++ b/apps/website/src/app/error.tsx @@ -1,7 +1,7 @@ "use client"; import Link from "next/link"; -import { useRouter } from 'next-nprogress-bar'; +import { useRouter } from "next-nprogress-bar"; import { Button } from "@mc/ui/button"; diff --git a/apps/website/src/app/legal/PageSwitcher.tsx b/apps/website/src/app/legal/PageSwitcher.tsx index 05eaa4f1f..231210b34 100644 --- a/apps/website/src/app/legal/PageSwitcher.tsx +++ b/apps/website/src/app/legal/PageSwitcher.tsx @@ -1,7 +1,8 @@ "use client"; import type { LegalPagesSlugs } from "@mc/common/Routes"; -import { useSearchParams } from "next/navigation"; +import { useSearchParams } from "next/navigation"; +import { useRouter } from "next-nprogress-bar"; import { z } from "zod"; import { legalPagesSlugs } from "@mc/common/Routes"; @@ -11,7 +12,6 @@ import { TypographyH1 } from "@mc/ui/TypographyH1"; import { Routes } from "~/other/routes"; import { legalPages } from "./legalPages"; -import { useRouter } from "next-nprogress-bar"; export default function PageSwitcher() { const searchParams = useSearchParams(); diff --git a/apps/website/src/i18n/locales/en-US/main.json b/apps/website/src/i18n/locales/en-US/main.json index 63ff6a7b4..3d0131211 100644 --- a/apps/website/src/i18n/locales/en-US/main.json +++ b/apps/website/src/i18n/locales/en-US/main.json @@ -755,4 +755,4 @@ } } } -} \ No newline at end of file +}