Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardozgz committed Oct 22, 2024
1 parent 5b77756 commit d1c9018
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/website/src/app/account/DeleteButton.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/admin/guilds/LoadGuildInput.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useRouter } from 'next-nprogress-bar';
import { useRouter } from "next-nprogress-bar";

import { Button } from "@mc/ui/button";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/admin/users/LoadUserInput.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/admin/users/RecentUser.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/admin/users/[id]/DeleteButton.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/admin/users/[id]/ManageUser.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/app/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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();
Expand Down
16 changes: 8 additions & 8 deletions apps/website/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -33,7 +33,7 @@ export default function Page() {
}, [hasAnythingSelected, router, userGuildsQuery.data]);

return (
<div className="flex flex-col p-1 grow justify-center items-center h-full ">
<div className="flex h-full grow flex-col items-center justify-center p-1 ">
{!userGuildsQuery.isLoading && !userGuildsQuery.data?.userGuilds.size && (
<>
<TypographyH3>
Expand All @@ -50,7 +50,7 @@ export default function Page() {
}}
/>
</TypographyH4>
</ >
</>
)}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/app/legal/PageSwitcher.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/i18n/locales/en-US/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,4 +755,4 @@
}
}
}
}
}

0 comments on commit d1c9018

Please sign in to comment.