Fix tampilan admin dan notifikasi to admin
# fix - Notifikasi report posting _ Realtime notifikasi ## Issuee: Cooming soon saat report komentar langsung menuju tablenya
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
* @type number
|
||||
* @returns notifikasi berhasil warna hijau
|
||||
*/
|
||||
export async function ComponentGlobalAdmin_NotifikasiBerhasil(
|
||||
export async function ComponentAdminGlobal_NotifikasiBerhasil(
|
||||
text: string,
|
||||
durasi?: number
|
||||
) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { IconAlertTriangle } from "@tabler/icons-react";
|
||||
* @type string
|
||||
* @returns notifikasi peringatan
|
||||
*/
|
||||
export async function ComponentGlobalAdmin_NotifikasiGagal(text: string) {
|
||||
export async function ComponentAdminGlobal_NotifikasiGagal(text: string) {
|
||||
return notifications.show({
|
||||
message: (
|
||||
<Center>
|
||||
|
||||
@@ -8,7 +8,7 @@ import { IconAlertTriangle } from "@tabler/icons-react";
|
||||
* @type string
|
||||
* @returns notifikasi peringatan
|
||||
*/
|
||||
export async function ComponentGlobalAdmin_NotifikasiPeringatan(
|
||||
export async function ComponentAdminGlobal_NotifikasiPeringatan(
|
||||
text: string,
|
||||
durasi?: number
|
||||
) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { IconChevronLeft } from "@tabler/icons-react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function ComponentGlobalAdmin_BackButton({path}:{path?:string}) {
|
||||
export default function ComponentAdminGlobal_BackButton({path}:{path?:string}) {
|
||||
const router = useRouter();
|
||||
const [isLoading, setLoading] = useState(false);
|
||||
|
||||
|
||||
19
src/app_modules/admin/component_global/is_empty_data.tsx
Normal file
19
src/app_modules/admin/component_global/is_empty_data.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
|
||||
import { Center, Text } from "@mantine/core";
|
||||
|
||||
export default function ComponentAdminGlobal_IsEmptyData({
|
||||
text,
|
||||
marginTop,
|
||||
}: {
|
||||
text?: string;
|
||||
marginTop?: number;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Center h={"100%"} mt={marginTop ? marginTop : "xl"}>
|
||||
<Text c={"gray"} fw={"bold"}>{text ? text : "Tidak Ada Data"}</Text>
|
||||
</Center>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export default function ComponentAdminGlobal_LoadingPage() {
|
||||
},
|
||||
];
|
||||
const customLOader = (
|
||||
<Center h={"100vh"}>
|
||||
<Center h={"90vh"}>
|
||||
<Group>
|
||||
{listhHuruf.map((e, i) => (
|
||||
<Center key={i} h={"100%"}>
|
||||
@@ -44,7 +44,10 @@ export default function ComponentAdminGlobal_LoadingPage() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<LoadingOverlay visible overlayBlur={1} loader={customLOader} />
|
||||
{/* <LoadingOverlay visible loader={customLOader} /> */}
|
||||
<Box>
|
||||
{customLOader}
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user