From 0fa841aaf6c13023a84436d1ffbe9ef1a7300499 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Mon, 21 Apr 2025 17:24:45 +0100 Subject: [PATCH] Add Icons --- app/dashboard/categories/page.tsx | 141 ++++++++++++++++-------------- app/dashboard/products/page.tsx | 9 +- app/dashboard/promotions/page.tsx | 6 +- app/dashboard/shipping/page.tsx | 7 +- 4 files changed, 89 insertions(+), 74 deletions(-) diff --git a/app/dashboard/categories/page.tsx b/app/dashboard/categories/page.tsx index aef0102..36db59a 100644 --- a/app/dashboard/categories/page.tsx +++ b/app/dashboard/categories/page.tsx @@ -4,7 +4,7 @@ import { useState, useEffect, useRef } from "react"; import Layout from "@/components/layout/layout"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; -import { Plus, Pencil, Trash2, ChevronRight, ChevronDown, MoveVertical } from "lucide-react"; +import { Plus, Pencil, Trash2, ChevronRight, ChevronDown, MoveVertical, FolderTree } from "lucide-react"; import { toast } from "sonner"; import { Select, @@ -340,77 +340,84 @@ export default function CategoriesPage() { return ( -
+
-

Categories

+

+ + Categories +

- - - Add New Category - - -
-
- - setNewCategoryName(e.target.value)} - placeholder="Enter category name" - className="h-9" - /> +
+ {/* Add Category Card - Takes up 2 columns */} + + + Add New Category + + +
+
+ + setNewCategoryName(e.target.value)} + placeholder="Enter category name" + className="h-9" + /> +
+
+ + +
+
-
- - -
- -
- - + + - - - Category List - - - -
- {rootCategories.length === 0 ? ( -

- No categories yet. Add your first category above. -

- ) : ( - rootCategories.map(category => ( - - )) - )} -
-
-
-
+ {/* Category List Card - Takes up 3 columns */} + + + Category List + + + +
+ {rootCategories.length === 0 ? ( +

+ No categories yet. Add your first category above. +

+ ) : ( + rootCategories.map(category => ( + + )) + )} +
+
+
+
+
{/* Delete Confirmation Dialog */} {categoryToDelete && ( diff --git a/app/dashboard/products/page.tsx b/app/dashboard/products/page.tsx index 25facb6..11c2a5e 100644 --- a/app/dashboard/products/page.tsx +++ b/app/dashboard/products/page.tsx @@ -6,7 +6,7 @@ import Layout from "@/components/layout/layout"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Product } from "@/models/products"; -import { Plus, Upload, Search, RefreshCw } from "lucide-react"; +import { Plus, Upload, Search, RefreshCw, Package2 } from "lucide-react"; import { clientFetch } from "@/lib/api"; import { ProductModal } from "@/components/modals/product-modal"; import ProductTable from "@/components/tables/product-table"; @@ -269,8 +269,11 @@ export default function ProductsPage() { return (
-
-

Product Inventory

+
+

+ + Products +

diff --git a/app/dashboard/promotions/page.tsx b/app/dashboard/promotions/page.tsx index 625ef32..743b53b 100644 --- a/app/dashboard/promotions/page.tsx +++ b/app/dashboard/promotions/page.tsx @@ -3,6 +3,7 @@ import Dashboard from "@/components/dashboard/dashboard"; import { Metadata, Viewport } from "next"; import PromotionsList from "@/components/dashboard/promotions/PromotionsList"; import PromotionsPageSkeleton from "@/components/dashboard/promotions/PromotionsPageSkeleton"; +import { Ticket } from "lucide-react"; export const metadata: Metadata = { title: "Promotions | Ember Market", @@ -23,7 +24,10 @@ export default function PromotionsPage() {
-

Promotions

+

+ + Promotions +

Create and manage promotional codes and discounts for your store

diff --git a/app/dashboard/shipping/page.tsx b/app/dashboard/shipping/page.tsx index 5a71b06..4a0d25e 100644 --- a/app/dashboard/shipping/page.tsx +++ b/app/dashboard/shipping/page.tsx @@ -3,7 +3,7 @@ import { useState, useEffect, ChangeEvent } from "react"; import { useRouter } from "next/navigation"; import Layout from "@/components/layout/layout"; -import { Edit, Plus, Trash } from "lucide-react"; +import { Edit, Plus, Trash, Truck } from "lucide-react"; import { Button } from "@/components/ui/button"; import { ShippingModal } from "@/components/modals/shipping-modal"; import { Skeleton } from "@/components/ui/skeleton"; @@ -174,8 +174,9 @@ export default function ShippingPage() {
-

- Manage Shipping Options +

+ + Shipping Methods