fix:disable create edit delete

This commit is contained in:
Rama Priyanto 2025-06-09 16:36:24 +07:00
parent dbb2fbb464
commit a0ee6421d1
5 changed files with 8 additions and 4 deletions

View File

@ -11,10 +11,12 @@ export default function BasicPage() {
<div className="overflow-x-hidden overflow-y-scroll">
<div className="px-2 md:px-4 md:py-4 w-full">
<div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl p-3">
<Link href="/admin/article/create">
<Link href="#">
{/* <Link href="/admin/article/create"> */}
<Button
size="md"
className="bg-[#F07C00] text-white w-full lg:w-fit"
isDisabled
>
Tambah Artikel
<AddIcon />

View File

@ -174,6 +174,7 @@ export default function MasterCategoryTable() {
size="md"
className="bg-[#F07C00] text-white w-full lg:w-fit"
onPress={onOpen}
isDisabled
>
Tambah Kategori
<AddIcon />

View File

@ -351,7 +351,8 @@ export default function DashboardContainer() {
<div className="flex flex-col w-full lg:w-[45%] gap-6 shadow-md bg-white dark:bg-[#18181b] rounded-lg p-8 text-sm">
<div className="flex justify-between font-semibold">
<p>Recent Article</p>
<Link href="/admin/article/create">
<Link href="#">
{/* <Link href="/admin/article/create"> */}
<Button color="primary" variant="bordered">
Buat Article
</Button>

View File

@ -321,7 +321,7 @@ export default function ArticleTable() {
<DotsYIcon className="text-default-300" />
</Button>
</DropdownTrigger>
<DropdownMenu>
<DropdownMenu disabledKeys={["edit", "delete"]}>
<DropdownItem
key="copy-article"
onPress={() => copyUrlArticle(article.id, article.slug)}

View File

@ -284,7 +284,7 @@ export default function CategoriesTable(props: { triggerRefresh: boolean }) {
<DotsYIcon className="text-default-300" />
</Button>
</DropdownTrigger>
<DropdownMenu>
<DropdownMenu disabledKeys={["Edit", "Delete"]}>
<DropdownItem
key="Detail"
onPress={() => openModal(category.id, true)}