switch to bun, update all packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Link from "next/link"
|
||||
import AdminWrap from "./AdminWrap"
|
||||
import { SignedIn, SignedOut, SignInButton, SignOutButton, SignUpButton, UserButton } from "@clerk/nextjs"
|
||||
import { Show, SignInButton, SignOutButton, SignUpButton, UserButton } from "@clerk/nextjs"
|
||||
import { Button } from "~/components/ui/button"
|
||||
import { ThemeSwitch } from "./ThemeSwitch"
|
||||
|
||||
@@ -28,27 +28,27 @@ export default function TopNav() {
|
||||
<Link className="" href={"/admin"}> Admin </Link>
|
||||
</Button>
|
||||
</AdminWrap>
|
||||
<SignedIn>
|
||||
<Show when="signed-in">
|
||||
<Button asChild className="flex h-full w-full lg:w-20" variant={"outline"}>
|
||||
<SignOutButton />
|
||||
</Button>
|
||||
</SignedIn>
|
||||
<SignedOut>
|
||||
</Show>
|
||||
<Show when="signed-out">
|
||||
<Button asChild className="flex h-full cursor-pointer lg:w-20" variant={"outline"}>
|
||||
<SignInButton mode="modal" />
|
||||
</Button>
|
||||
<Button asChild className="flex h-full cursor-pointer lg:w-20" variant={"outline"}>
|
||||
<SignUpButton mode="modal" />
|
||||
</Button>
|
||||
</SignedOut>
|
||||
</Show>
|
||||
<ThemeSwitch />
|
||||
<SignedIn>
|
||||
<Show when="signed-in">
|
||||
<Button asChild className="flex h-full cursor-pointer lg:w-20 content-center" variant={"outline"}>
|
||||
<div>
|
||||
<UserButton />
|
||||
</div>
|
||||
</Button>
|
||||
</SignedIn>
|
||||
</Show>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useState } from 'react';
|
||||
import { SelectFormField, TextInputFormField } from '~/app/_components/Form/Fields';
|
||||
import { usePathname, useRouter } from 'next/navigation';
|
||||
import { SelectItem } from '~/components/ui/select';
|
||||
import FormMutationContextProvider from '~/app/_components/Form/Components/MutationProvider';
|
||||
import {FormMutationContextProvider} from '~/app/_components/Form/Components/MutationProvider';
|
||||
export default function CreateUpdateCvCategoryForm(params: { className?: string, entity?: IterableElement<RouterOutputs['category']['select']> }) {
|
||||
const schemas = entitySchemas('cvCategory')
|
||||
const [id, setId] = useState<string | undefined>(params.entity ? params.entity.id : undefined)
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
'use server'
|
||||
|
||||
import { SignedIn } from "@clerk/nextjs";
|
||||
import { Show } from "@clerk/nextjs";
|
||||
|
||||
export default async function AdminPage() {
|
||||
return (
|
||||
<SignedIn>
|
||||
<Show when="signed-in">
|
||||
<main className="flex min-h-screen flex-col items-center justify-center">
|
||||
<div>
|
||||
hello admin
|
||||
</div>
|
||||
</main>
|
||||
</SignedIn>
|
||||
</Show>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "~/styles/globals.css";
|
||||
import type { Metadata } from "next";
|
||||
import { Geist } from "next/font/google";
|
||||
import { Geist, Inter } from "next/font/google";
|
||||
import { ClerkProvider } from "@clerk/nextjs";
|
||||
import { config } from "@fortawesome/fontawesome-svg-core"
|
||||
import "@fortawesome/fontawesome-svg-core/styles.css"
|
||||
@@ -11,6 +11,11 @@ import TrpcProvider from "./_trpc/TrpcProvider";
|
||||
import ThemeProvider from './_providers/ThemeProvider'
|
||||
import GsapProvider from "./_providers/GsapProvicer";
|
||||
import { CodeHighlightStyle } from "./_components/CodeHighlightSyle";
|
||||
import { cn } from "~/lib/utils";
|
||||
|
||||
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
||||
|
||||
|
||||
config.autoAddCss = false;
|
||||
export const metadata: Metadata = {
|
||||
title: "Gregor Lohaus",
|
||||
@@ -34,7 +39,7 @@ export default async function RootLayout({
|
||||
<TrpcProvider>
|
||||
<ThemeProvider>
|
||||
<GsapProvider>
|
||||
<html lang="en" className={`${geist.variable}`} suppressHydrationWarning>
|
||||
<html lang="en" className={cn(geist.variable, "font-sans", inter.variable)} suppressHydrationWarning>
|
||||
<head>
|
||||
<CodeHighlightStyle/>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user