fix:disable button

This commit is contained in:
Rama Priyanto 2025-06-09 16:56:30 +07:00
parent 3c5ce29060
commit a3538d1322
3 changed files with 53 additions and 44 deletions

View File

@ -21,6 +21,14 @@ export default function BasicPage() {
<AddIcon /> <AddIcon />
</Button> </Button>
</Link> */} </Link> */}
<Button
size="md"
className="bg-[#F07C00] text-white w-full lg:w-fit"
isDisabled
>
Tambah Artikel
<AddIcon />
</Button>
<ArticleTable /> <ArticleTable />
</div> </div>
</div> </div>

View File

@ -176,7 +176,7 @@ export default function MasterCategoryTable() {
<div className="overflow-x-hidden overflow-y-scroll"> <div className="overflow-x-hidden overflow-y-scroll">
<div className="px-2 md:px-4 md:py-4 w-full"> <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"> <div className="bg-white shadow-lg dark:bg-[#18181b] rounded-xl p-3">
{/* <Button <Button
size="md" size="md"
className="bg-[#F07C00] text-white w-full lg:w-fit" className="bg-[#F07C00] text-white w-full lg:w-fit"
onPress={onOpen} onPress={onOpen}
@ -184,7 +184,7 @@ export default function MasterCategoryTable() {
> >
Tambah Kategori Tambah Kategori
<AddIcon /> <AddIcon />
</Button> */} </Button>
<CategoriesTable triggerRefresh={refresh} /> <CategoriesTable triggerRefresh={refresh} />
</div> </div>
</div> </div>

View File

@ -82,7 +82,7 @@ export default function HeaderNews() {
<div className="w-full"> <div className="w-full">
<div className="flex flex-col lg:flex-row gap-3 lg:gap-8 bg-white dark:bg-black p-1 lg:p-8 lg:h-[540px] w-full lg:w-[75%] lg:mx-auto"> <div className="flex flex-col lg:flex-row gap-3 lg:gap-8 bg-white dark:bg-black p-1 lg:p-8 lg:h-[540px] w-full lg:w-[75%] lg:mx-auto">
<div className="lg:hidden w-[90%] h-[300px] md:h-[500px] mx-auto"> <div className="lg:hidden w-[90%] h-[300px] md:h-[500px] mx-auto">
{banner.length > 0 ? ( {banner?.length > 0 ? (
<Swiper <Swiper
centeredSlides={true} centeredSlides={true}
autoplay={{ autoplay={{
@ -222,7 +222,7 @@ export default function HeaderNews() {
</div> </div>
<div className="hidden lg:block w-full lg:w-[50%] h-[500px]"> <div className="hidden lg:block w-full lg:w-[50%] h-[500px]">
{banner.length > 0 ? ( {banner?.length > 0 ? (
<Swiper <Swiper
centeredSlides={true} centeredSlides={true}
autoplay={{ autoplay={{
@ -249,7 +249,8 @@ export default function HeaderNews() {
); );
}} }}
> >
{banner.map((newsItem: any, index: number) => ( {banner?.lenth > 0 &&
banner.map((newsItem: any, index: number) => (
<SwiperSlide key={newsItem?.id} className="!w-full h-[50vh]"> <SwiperSlide key={newsItem?.id} className="!w-full h-[50vh]">
<Card <Card
isFooterBlurred isFooterBlurred