tampilan pelayanan surat
Deskripsi: - tampilan list pelayanan surat No Issues
This commit is contained in:
@@ -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" }}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user