mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 13:48:55 +00:00
✨ login page
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { User } from "./user";
|
||||
|
||||
export interface AuthContextProps {
|
||||
profile: User | undefined;
|
||||
login: (profile: User | undefined) => void;
|
||||
logout: () => void;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './user';
|
||||
export * from './mainStore';
|
||||
export * from './authContext';
|
||||
@@ -0,0 +1,6 @@
|
||||
import { User } from "./user";
|
||||
|
||||
export interface MainStore {
|
||||
profile: User | undefined;
|
||||
setProfile: (profile: User | undefined) => void;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface User {
|
||||
username: string;
|
||||
}
|
||||
Reference in New Issue
Block a user