handleSort("id")}>
- ID {sortOrder === "asc" ? "↑" : sortOrder === "desc" ? "↓" : ""}
+
handleSort("id")}>
+ ID{" "}
+ {sortOrder === "asc" ? (
+
+ ) : sortOrder === "desc" ? (
+
+ ) : (
+
+ )}
),
accessorKey: "id",
@@ -47,6 +60,13 @@ const TanStackTable = ({ data }: any) => {
{
header: "Description",
accessorKey: "description",
+ cell: ({ row }: any) => (
+ <>
+
+ {row.original.description}
+
+ >
+ ),
},
{
header: "Category",
@@ -82,9 +102,14 @@ const TanStackTable = ({ data }: any) => {
cell: ({ row }: any) => (
<>
{/* {row.original.reviews.length} Reviews */}
-
+
handleButtonClick(row.original)}
+ >
+
+
>
),
},
diff --git a/src/components/titleHeader/titleHeader.tsx b/src/components/titleHeader/titleHeader.tsx
index 1789ec8..43b21a6 100644
--- a/src/components/titleHeader/titleHeader.tsx
+++ b/src/components/titleHeader/titleHeader.tsx
@@ -26,7 +26,7 @@ const TitleHeader = () => {
}}
>
- Projects
+ Products
{
color="inherit"
href="/material-ui/getting-started/installation/"
>
- Project Table
+ Product Table
diff --git a/src/components/wrapper/dashboardWrapper.tsx b/src/components/wrapper/dashboardWrapper.tsx
index b3c6176..0e5f4fa 100644
--- a/src/components/wrapper/dashboardWrapper.tsx
+++ b/src/components/wrapper/dashboardWrapper.tsx
@@ -102,7 +102,7 @@ export default function DashboardWrapper(props: Props) {
{/*
*/}
- {["Project Table"].map((text, index) => (
+ {["Product Table"].map((text, index) => (
-
- Responsive drawer
-
+