diff --git a/app/code/[id]/page.tsx b/app/code/[id]/page.tsx index 139febe..28f81c0 100644 --- a/app/code/[id]/page.tsx +++ b/app/code/[id]/page.tsx @@ -1,4 +1,7 @@ +"use client" + import Navbar from "@/components/navbar" +import { useClerk } from "@clerk/nextjs" import dynamic from "next/dynamic" const CodeEditor = dynamic(() => import("@/components/editor"), { @@ -6,11 +9,13 @@ const CodeEditor = dynamic(() => import("@/components/editor"), { }) export default function CodePage() { + const clerk = useClerk() + return (
- + {clerk.loaded ? : null}
) diff --git a/assets/logo.png b/assets/logo.png deleted file mode 100644 index 08b73a6..0000000 Binary files a/assets/logo.png and /dev/null differ diff --git a/assets/logo.svg b/assets/logo.svg index 8282526..3fec864 100644 --- a/assets/logo.svg +++ b/assets/logo.svg @@ -1,22 +1,27 @@ - - - - - - - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/components/navbar/index.tsx b/components/navbar/index.tsx index c9caa1e..d64d9ce 100644 --- a/components/navbar/index.tsx +++ b/components/navbar/index.tsx @@ -2,6 +2,7 @@ import Image from "next/image" import Logo from "@/assets/logo.svg" import { Input } from "../ui/input" import { Pencil } from "lucide-react" +import { UserButton } from "@clerk/nextjs" export default function Navbar() { return ( @@ -12,11 +13,12 @@ export default function Navbar() {
My React Project{" "} -
+
+ ) } diff --git a/middleware.ts b/middleware.ts index 71e2215..ea63c0f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -5,5 +5,5 @@ export default authMiddleware({ }) export const config = { - matcher: ["/((?!.+.[w]+$|_next).*)", "/", "/(api|trpc)(.*)"], + matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(api|trpc)(.*)"], }