File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
AccessTokenPayload ,
6
6
AccessTokenPayloadSchema ,
7
7
} from "@/types/Token" ;
8
- import { UserProfile } from "@/types/User" ;
9
8
import React , {
10
9
createContext ,
11
10
useContext ,
@@ -14,11 +13,11 @@ import React, {
14
13
PropsWithChildren ,
15
14
} from "react" ;
16
15
17
- const UserContext = createContext < UserProfile | undefined > ( undefined ) ;
16
+ const UserContext = createContext < AccessTokenPayload | undefined > ( undefined ) ;
18
17
19
18
export function UserProvider ( { children } : PropsWithChildren ) {
20
19
// TODO: Once User Service is implemented on the backend, fetch user profile
21
- const [ user , setUser ] = useState < UserProfile > ( ) ;
20
+ const [ user , setUser ] = useState < AccessTokenPayload > ( ) ;
22
21
23
22
useEffect ( ( ) => {
24
23
const token = localStorage . getItem ( "access_token" ) ;
You can’t perform that action at this time.
0 commit comments