Starting working on settings Page.

This commit is contained in:
charles-gauthereau
2024-11-16 17:05:55 +01:00
parent 9727eef581
commit b8218dcf85
11 changed files with 126 additions and 14 deletions
+7 -7
View File
@@ -6,13 +6,13 @@ import {prisma} from "@/prisma";
export default async function Layout({children}: { children: React.ReactNode }) {
const user = await currentUser()
const userInfo = await prisma.user.findUnique({
where: {
email: user.email
}
})
if(userInfo){
// const userInfo = await prisma.user.findUnique({
// where: {
// email: user?.email
// }
// })
//
if(user){
redirect('/dashboard')
}