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:
2024-06-24 23:07:54 +08:00
parent e70577c43e
commit 1a157846c1
66 changed files with 2040 additions and 1224 deletions

View File

@@ -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
) {

View File

@@ -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>

View File

@@ -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
) {

View File

@@ -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);

View 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>
</>
);
}

View File

@@ -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>
</>
);
}