tampilan pelayanan surat

Deskripsi:
- tampilan list pelayanan surat

No Issues
This commit is contained in:
2025-11-07 17:34:07 +08:00
parent 621cfc931a
commit 5c71d000f6
5 changed files with 288 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ import {
Stack,
Tabs,
Text,
Title
Title,
} from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks";
import {
@@ -108,7 +108,13 @@ function TabListPengaduan({ status }: { status: string }) {
);
}
type StatusKey = "antrian" | "diterima" | "dikerjakan" | "ditolak" | "selesai" | "semua";
type StatusKey =
| "antrian"
| "diterima"
| "dikerjakan"
| "ditolak"
| "selesai"
| "semua";
function ListPengaduan({ status }: { status: StatusKey }) {
const [page, setPage] = useState(1);
const [value, setValue] = useState("");
@@ -158,8 +164,8 @@ function ListPengaduan({ status }: { status: StatusKey }) {
rightSection={
<CloseButton
aria-label="Clear input"
onClick={() => setValue('')}
style={{ display: value ? undefined : 'none' }}
onClick={() => setValue("")}
style={{ display: value ? undefined : "none" }}
/>
}
/>