+
{children}
diff --git a/src/app/(dashboard)/posts/page.tsx b/src/app/(dashboard)/posts/page.tsx
index d566cc2..b1ef0e5 100644
--- a/src/app/(dashboard)/posts/page.tsx
+++ b/src/app/(dashboard)/posts/page.tsx
@@ -2,12 +2,8 @@
import { useState } from "react"
import PostFeed from "@/src/components/dashboard/post-feed"
-import {
- Post,
- PostFile,
- PostPoll
-} from "@/src/components/dashboard/Posts/types/posts-types"
import CreatePostForm from "@/src/components/dashboard/create-post-form"
+import { Post, PostFile, PostPoll } from "@/src/components/dashboard/posts/types/posts-types"
const samplePosts: (Post | PostFile | PostPoll)[] = [
{
diff --git a/src/app/(home)/layout.tsx b/src/app/(home)/layout.tsx
index a55b18a..064e173 100644
--- a/src/app/(home)/layout.tsx
+++ b/src/app/(home)/layout.tsx
@@ -10,9 +10,9 @@ const PublicLayout = ({ children }: { children: ReactNode }) => {
return (
<>
-
- {children}
-
+
+ {children}
+
>
diff --git a/src/app/api/webhook/user-created/route.ts b/src/app/api/webhook/user-created/route.ts
index 5902108..bc2ed93 100644
--- a/src/app/api/webhook/user-created/route.ts
+++ b/src/app/api/webhook/user-created/route.ts
@@ -2,7 +2,7 @@ import { Webhook } from 'svix'
import { headers } from 'next/headers'
import { WebhookEvent } from '@clerk/nextjs/server'
import { InsertUser } from '@/src/db/schema'
-import { CreateUser, SelectUserByEmail, SelectUserById } from '@/src/db/data-access/user/query'
+import { CreateUser, SelectUserByEmail, SelectUserByExternalId } from '@/src/db/data-access/user/query'
export async function POST(req: Request) {
@@ -60,7 +60,7 @@ export async function POST(req: Request) {
if (evt.type === 'user.created') {
const userObj = evt.data
- const userById = await SelectUserById(userObj.id)
+ const userById = await SelectUserByExternalId(userObj.id)
const userByEmail = await SelectUserByEmail(userObj.email_addresses[0].email_address)
if (userById || userByEmail) {
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 886b09b..37b38f9 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -4,8 +4,9 @@ import "./globals.css";
import {
ClerkProvider
} from '@clerk/nextjs'
-import { ThemeProvider } from "../components/ThemeProvider/ThemeProvider";
import ClerkAuthListener from "../services/auth/ClerkAuthListner";
+import ThemeProvider from "../components/ThemeProvider/ThemeProvider";
+import { Toaster } from "../components/ui/toaster";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
@@ -41,6 +42,7 @@ export default function RootLayout({
enableSystem
disableTransitionOnChange
>
+
{children}