fix:hide create article & category button
This commit is contained in:
parent
59fc8a248b
commit
c7e9593bae
|
|
@ -11,7 +11,7 @@ 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="/admin/article/create">
|
||||
<Button
|
||||
size="md"
|
||||
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
||||
|
|
@ -19,7 +19,7 @@ export default function BasicPage() {
|
|||
Tambah Artikel
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</Link>
|
||||
</Link> */}
|
||||
<ArticleTable />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -175,14 +175,14 @@ export default function MasterCategoryTable() {
|
|||
<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">
|
||||
<Button
|
||||
{/* <Button
|
||||
size="md"
|
||||
className="bg-[#F07C00] text-white w-full lg:w-fit"
|
||||
onPress={onOpen}
|
||||
>
|
||||
Tambah Kategori
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</Button> */}
|
||||
<CategoriesTable triggerRefresh={refresh} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ export default function Login() {
|
|||
error("Username & Password Wajib Diisi !");
|
||||
} else {
|
||||
// login dengan otp
|
||||
loading();
|
||||
const response = await emailValidation(data);
|
||||
if (response?.error) {
|
||||
error("Username / Password Tidak Sesuai");
|
||||
|
|
@ -83,7 +84,7 @@ export default function Login() {
|
|||
}
|
||||
|
||||
// login tanpa otp
|
||||
// loading();
|
||||
loading();
|
||||
// const response = await postSignIn(data);
|
||||
// if (response?.error) {
|
||||
// error("Username / Password Tidak Sesuai");
|
||||
|
|
|
|||
Loading…
Reference in New Issue