add users and fix modal
This commit is contained in:
@@ -6,3 +6,23 @@ export type User = {
|
||||
email: string;
|
||||
products: Product[];
|
||||
}
|
||||
|
||||
export type UserInputs = {
|
||||
email: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export type UserCreate ={
|
||||
email: string | null;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
export type UserEdit ={
|
||||
email: string | null;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
export type UserEditPayload = {
|
||||
user: UserEdit;
|
||||
id: number;
|
||||
}
|
||||
Reference in New Issue
Block a user