catalog part connected to backend , added empty data and loading component
This commit is contained in:
39
lib/types.ts
Normal file
39
lib/types.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export interface CategoryType {
|
||||
id: number;
|
||||
name: string;
|
||||
image: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface SubCategoryType {
|
||||
id: number;
|
||||
name: string;
|
||||
category: number;
|
||||
image: string;
|
||||
}
|
||||
|
||||
export interface ProductsPageTypes {
|
||||
id: number;
|
||||
name: string;
|
||||
image: string;
|
||||
}
|
||||
|
||||
export interface ProductImage {
|
||||
id: number;
|
||||
product: number;
|
||||
image: string;
|
||||
is_main: boolean;
|
||||
order: number;
|
||||
}
|
||||
|
||||
export interface ProductDetail {
|
||||
id: number;
|
||||
name: string;
|
||||
articular: string;
|
||||
status: string;
|
||||
description: string;
|
||||
size: number;
|
||||
price: string;
|
||||
features: string[];
|
||||
images: ProductImage[];
|
||||
}
|
||||
Reference in New Issue
Block a user