subnav and other stuff
This commit is contained in:
+16
-2
@@ -1,3 +1,6 @@
|
||||
// Grouping for nav + layout
|
||||
export type CategoryGroup = "lower" | "upper" | "accessories";
|
||||
|
||||
export type CategoryId =
|
||||
| "upper"
|
||||
| "completeUpper"
|
||||
@@ -18,12 +21,22 @@ export type CategoryId =
|
||||
| "safety"
|
||||
| "sights"
|
||||
| "optic"
|
||||
| "stock";
|
||||
| "stock"
|
||||
// NEW ACCESSORY CATEGORIES
|
||||
| "magazine"
|
||||
| "weaponLight"
|
||||
| "foregrip"
|
||||
| "bipod"
|
||||
| "sling"
|
||||
| "railAccessory"
|
||||
| "tools";
|
||||
|
||||
export interface Category {
|
||||
id: CategoryId;
|
||||
name: string;
|
||||
description?: string;
|
||||
/** used for nav & grouping */
|
||||
group?: CategoryGroup;
|
||||
}
|
||||
|
||||
export interface Part {
|
||||
@@ -32,7 +45,8 @@ export interface Part {
|
||||
brand: string;
|
||||
categoryId: CategoryId;
|
||||
price: number;
|
||||
affiliateUrl: string;
|
||||
affiliateUrl?: string;
|
||||
url?: string;
|
||||
imageUrl?: string;
|
||||
notes?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user