diff --git a/components/parts/PartsGrid.tsx b/components/parts/PartsGrid.tsx index fed21f4..a0a8b05 100644 --- a/components/parts/PartsGrid.tsx +++ b/components/parts/PartsGrid.tsx @@ -1,11 +1,13 @@ "use client"; import Link from "next/link"; +import { Plus } from "lucide-react"; type UiPart = { id: string; name: string; brand: string; + caliber?: string; platform: string; partRole: string; price: number; @@ -36,7 +38,8 @@ export default function PartsGrid(props: {
- {part.brand} — {part.name} + {part.brand}{" "} + — {part.name}
@@ -89,8 +92,9 @@ export default function PartsGrid(props: { return ( <> {/* Header (DESKTOP ONLY) */} -
Part - Brand +
+ Part + Caliber Price Actions
@@ -102,17 +106,27 @@ export default function PartsGrid(props: { key={part.id} className="group relative rounded-md border border-zinc-700 bg-zinc-900/50 p-3 transition-all hover:border-amber-400/60 hover:bg-amber-400/10" > -
+
{/* Part */}
-
+ {part.name} -
+ + {/* Dont think we need Brand in the grid */} + {/*
+ {part.brand} + {part.caliber ? ( + • {part.caliber} + ) : null} +
*/}
- - {/* Brand */} -
- {part.brand} + {/* Caliber (desktop) */} +
+ {part.caliber ?? "—"}
{/* Price */} @@ -122,20 +136,15 @@ export default function PartsGrid(props: { {/* Actions */}
- - View Details - - {onAddToBuild ? ( ) : part.buyUrl ? ( ); -} \ No newline at end of file +}