mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 20:50:07 +00:00
✨ login page
This commit is contained in:
7
src/types/authContext.tsx
Normal file
7
src/types/authContext.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { User } from "./user";
|
||||
|
||||
export interface AuthContextProps {
|
||||
profile: User | undefined;
|
||||
login: (profile: User | undefined) => void;
|
||||
logout: () => void;
|
||||
}
|
||||
3
src/types/index.ts
Normal file
3
src/types/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './user';
|
||||
export * from './mainStore';
|
||||
export * from './authContext';
|
||||
6
src/types/mainStore.tsx
Normal file
6
src/types/mainStore.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { User } from "./user";
|
||||
|
||||
export interface MainStore {
|
||||
profile: User | undefined;
|
||||
setProfile: (profile: User | undefined) => void;
|
||||
}
|
||||
3
src/types/user.ts
Normal file
3
src/types/user.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface User {
|
||||
username: string;
|
||||
}
|
||||
Reference in New Issue
Block a user