fix:hide create article & category button

This commit is contained in:
Rama Priyanto 2025-05-27 22:25:01 +07:00
parent 59fc8a248b
commit c7e9593bae
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@ export default function BasicPage() {
<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">
<Link href="/admin/article/create"> {/* <Link href="/admin/article/create">
<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"
@ -19,7 +19,7 @@ export default function BasicPage() {
Tambah Artikel Tambah Artikel
<AddIcon /> <AddIcon />
</Button> </Button>
</Link> </Link> */}
<ArticleTable /> <ArticleTable />
</div> </div>
</div> </div>

View File

@ -175,14 +175,14 @@ 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}
> >
Tambah Kategori Tambah Kategori
<AddIcon /> <AddIcon />
</Button> </Button> */}
<CategoriesTable triggerRefresh={refresh} /> <CategoriesTable triggerRefresh={refresh} />
</div> </div>
</div> </div>

View File

@ -69,6 +69,7 @@ export default function Login() {
error("Username & Password Wajib Diisi !"); error("Username & Password Wajib Diisi !");
} else { } else {
// login dengan otp // login dengan otp
loading();
const response = await emailValidation(data); const response = await emailValidation(data);
if (response?.error) { if (response?.error) {
error("Username / Password Tidak Sesuai"); error("Username / Password Tidak Sesuai");
@ -83,7 +84,7 @@ export default function Login() {
} }
// login tanpa otp // login tanpa otp
// loading(); loading();
// const response = await postSignIn(data); // const response = await postSignIn(data);
// if (response?.error) { // if (response?.error) {
// error("Username / Password Tidak Sesuai"); // error("Username / Password Tidak Sesuai");