From c4297a8167178b8d46689b4bd327a0f5b7344a41 Mon Sep 17 00:00:00 2001 From: "fredy.siswanto" Date: Sun, 2 Mar 2025 20:09:09 +0700 Subject: [PATCH] feat: replace inline button with reusable Button component in dashboard contents --- app/pages/dashboard-contents/index.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app/pages/dashboard-contents/index.tsx b/app/pages/dashboard-contents/index.tsx index a817783..31cfe69 100644 --- a/app/pages/dashboard-contents/index.tsx +++ b/app/pages/dashboard-contents/index.tsx @@ -3,6 +3,7 @@ import DT from 'datatables.net-dt' import DataTable from 'datatables.net-react' import { SearchIcon } from '~/components/icons/search' +import { Button } from '~/components/ui/button' import { TitleDashboard } from '~/components/ui/title-dashboard' import { CONTENTS } from './data' @@ -27,9 +28,6 @@ export const ContentsPage = () => { { title: 'Action', data: 'id', - render: () => { - return '' - }, }, ] @@ -70,6 +68,18 @@ export const ContentsPage = () => { className="cell-border" data={CONTENTS} columns={columns} + slots={{ + 6: (value: string | number) => { + return ( + + ) + }, + }} options={{ paging: true, searching: true,