From d5c7eefd32569593d0b3a9b7a154ace37a470e68 Mon Sep 17 00:00:00 2001 From: Kunal Gupta <39487888+iamKunalGupta@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:55:47 +0530 Subject: [PATCH] chore(ui): reformat via prettier --- ui/app/alert-config/layout.tsx | 6 +- ui/app/api/auth/[...nextauth]/route.ts | 4 +- ui/app/config/config.ts | 4 +- ui/app/mirrors/layout.tsx | 6 +- ui/app/peers/layout.tsx | 6 +- ui/components/Logout.tsx | 7 +- ui/components/SidebarComponent.tsx | 144 ++++++++++++------------- ui/middleware.ts | 6 +- 8 files changed, 85 insertions(+), 98 deletions(-) diff --git a/ui/app/alert-config/layout.tsx b/ui/app/alert-config/layout.tsx index f3af4631fd..69a53b44ea 100644 --- a/ui/app/alert-config/layout.tsx +++ b/ui/app/alert-config/layout.tsx @@ -3,9 +3,5 @@ import { Layout } from '@/lib/Layout'; import { PropsWithChildren } from 'react'; export default function PageLayout({ children }: PropsWithChildren) { - return ( - }> - {children} - - ); + return }>{children}; } diff --git a/ui/app/api/auth/[...nextauth]/route.ts b/ui/app/api/auth/[...nextauth]/route.ts index 0382c1fb82..a19cf278ac 100644 --- a/ui/app/api/auth/[...nextauth]/route.ts +++ b/ui/app/api/auth/[...nextauth]/route.ts @@ -1,7 +1,5 @@ -import NextAuth from 'next-auth'; import { authOptions } from '@/app/auth/options'; - +import NextAuth from 'next-auth'; const handler = NextAuth(authOptions); - export { handler as GET, handler as POST }; diff --git a/ui/app/config/config.ts b/ui/app/config/config.ts index 867a00d3d8..4e613fa084 100644 --- a/ui/app/config/config.ts +++ b/ui/app/config/config.ts @@ -3,5 +3,5 @@ export var Configuration = { PEERDB_PASSWORD: process.env.PEERDB_PASSWORD, // Set this in production to a static value NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, - } -} + }, +}; diff --git a/ui/app/mirrors/layout.tsx b/ui/app/mirrors/layout.tsx index f3af4631fd..69a53b44ea 100644 --- a/ui/app/mirrors/layout.tsx +++ b/ui/app/mirrors/layout.tsx @@ -3,9 +3,5 @@ import { Layout } from '@/lib/Layout'; import { PropsWithChildren } from 'react'; export default function PageLayout({ children }: PropsWithChildren) { - return ( - }> - {children} - - ); + return }>{children}; } diff --git a/ui/app/peers/layout.tsx b/ui/app/peers/layout.tsx index f3af4631fd..69a53b44ea 100644 --- a/ui/app/peers/layout.tsx +++ b/ui/app/peers/layout.tsx @@ -3,9 +3,5 @@ import { Layout } from '@/lib/Layout'; import { PropsWithChildren } from 'react'; export default function PageLayout({ children }: PropsWithChildren) { - return ( - }> - {children} - - ); + return }>{children}; } diff --git a/ui/components/Logout.tsx b/ui/components/Logout.tsx index 0cb508c649..8f33e6f8d9 100644 --- a/ui/components/Logout.tsx +++ b/ui/components/Logout.tsx @@ -1,7 +1,7 @@ 'use client'; import { Button } from '@/lib/Button'; -import { useRouter } from 'next/navigation'; import { useSession } from 'next-auth/react'; +import { useRouter } from 'next/navigation'; export default function Logout() { const { data: session } = useSession(); @@ -9,7 +9,10 @@ export default function Logout() { if (session) { return (