DashboardLayout changes, refactoring, useSWR

This commit is contained in:
cracklesparkle
2024-06-27 17:32:12 +09:00
parent 18fb120777
commit c41e59cd86
19 changed files with 1309 additions and 294 deletions

View File

@ -16,23 +16,25 @@ export interface UserCreds extends User {
password: string;
}
export interface Role {
name: string;
description?: string | null;
id: number;
}
export interface RoleCreate {
name: string;
description?: string | null;
}
export interface AuthState {
isAuthenticated: boolean;
token: string | null;
userData: UserData | {};
}
export interface SignUpFormData {
email: string;
login: string;
phone: string;
name: string;
surname: string;
is_active: boolean;
password: string;
}
export interface SignInFormData {
export interface LoginFormData {
username: string;
password: string;
grant_type: string;