Skip to content

Commit 31e8a82

Browse files
committed
tnku page init
1 parent 2e0d4a2 commit 31e8a82

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

app/dashboard/interview/[interviewId]/start/page.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { db } from "@/lib/utils/db";
55
import { MockInterview } from "@/lib/utils/schema";
66
import { eq } from "drizzle-orm";
77
import Link from "next/link";
8-
import React, { act, useEffect, useState } from "react";
8+
import { useEffect, useState } from "react";
99
import dynamic from "next/dynamic";
1010

1111
const QuestionsSection = dynamic(

app/thanks/page.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
3+
const page = () => {
4+
return <div>
5+
6+
</div>;
7+
};
8+
9+
export default page;

middleware.ts

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
22

33
export default clerkMiddleware((auth, req) => {
4-
if (isProtectedRoute(req)) auth().protect();
5-
});
4+
if (isProtectedRoute(req)) auth().protect();
5+
});
66

7-
const isProtectedRoute = createRouteMatcher([
8-
'/dashboard(.*)',
9-
10-
]);
7+
const isProtectedRoute = createRouteMatcher(["/dashboard(.*)"]);
118
export const config = {
12-
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'],
13-
};
9+
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
10+
};

0 commit comments

Comments
 (0)