Skip to content

Commit

Permalink
try 3
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisarsh1 committed Nov 3, 2024
1 parent 9475571 commit ddf95e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 50 deletions.
10 changes: 8 additions & 2 deletions client/src/app/(routes)/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
"use client"
import React, {useEffect} from 'react';
import React, {useEffect,useState} from 'react';
import { useUserContext } from '@/app/context/Userinfo';
import { useToast } from "@/hooks/use-toast"

const Layout = ({ children }) => {
const { toast } = useToast();

const {contextsetIsLoggedIn,contextsetEmail,contextsetName,contextisLoggedIn}= useUserContext();

const getUserInfo = async () => {
const token = localStorage.getItem('authToken');


const token = localStorage.getItem('authToken');



if (!token) return; // Early return if no token exists

try {
Expand Down
48 changes: 0 additions & 48 deletions client/src/app/(routes)/page.jsx

This file was deleted.

Binary file modified server/db.sqlite3
Binary file not shown.

0 comments on commit ddf95e1

Please sign in to comment.