Skip to content

Commit 977ca7a

Browse files
committed
update database -add merchant
1 parent d03a689 commit 977ca7a

5 files changed

Lines changed: 196 additions & 4 deletions

File tree

app/(dashboard)/admin/products/[id]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ const DashboardProductDetails = ({
269269
type="file"
270270
className="file-input file-input-bordered file-input-lg w-full max-w-sm"
271271
onChange={(e) => {
272+
// @ts-ignore
272273
const selectedFile = e.target.files[0];
273274

274275
if (selectedFile) {

components/DashboardSidebar.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { FaTable } from "react-icons/fa6";
1414
import { FaRegUser } from "react-icons/fa6";
1515
import { FaGear } from "react-icons/fa6";
1616
import { FaBagShopping } from "react-icons/fa6";
17+
import { FaStore } from "react-icons/fa6";
1718
import { MdCategory } from "react-icons/md";
1819

1920

@@ -52,12 +53,18 @@ const DashboardSidebar = () => {
5253
<span className="font-normal">Users</span>
5354
</div>
5455
</Link>
55-
<Link href="/admin/settings">
56+
<Link href="/admin/Merchant">
5657
<div className="flex gap-x-2 w-full hover:bg-blue-600 cursor-pointer items-center py-6 pl-5 text-xl text-white">
57-
<FaGear className="text-2xl" />{" "}
58-
<span className="font-normal">Settings</span>
58+
<FaStore className="text-2xl" />{" "}
59+
<span className="font-normal">Merchant</span>
5960
</div>
6061
</Link>
62+
<Link href="/admin/settings">
63+
<div className="flex gap-x-2 w-full hover:bg-blue-600 cursor-pointer items-center py-6 pl-5 text-xl text-white">
64+
<FaGear className="text-2xl" />{" "}
65+
<span className="font-normal">Settings</span>
66+
</div>
67+
</Link>
6168
</div>
6269
);
6370
};

0 commit comments

Comments
 (0)