upd : update pengajuan surat
deskripsi: - update type form pada tambah dan update pengajuan surat - tampilan klo tidak ada data yg dicari pada update pengajuan surat - update seeder category pengajuan surat No Issues
This commit is contained in:
51
src/components/NotFoundPengajuanSurat.tsx
Normal file
51
src/components/NotFoundPengajuanSurat.tsx
Normal file
@@ -0,0 +1,51 @@
|
||||
import {
|
||||
Button,
|
||||
Center,
|
||||
Group,
|
||||
Stack,
|
||||
Text,
|
||||
Title
|
||||
} from "@mantine/core"
|
||||
import { IconSearch } from "@tabler/icons-react"
|
||||
|
||||
export function DataNotFound({
|
||||
onRetry,
|
||||
backTo
|
||||
}: {
|
||||
onRetry?: () => void
|
||||
backTo?: () => void
|
||||
}) {
|
||||
return (
|
||||
<Center mih={320}>
|
||||
<Stack align="center" gap="sm">
|
||||
<IconSearch size={64} opacity={0.5} />
|
||||
|
||||
<Title order={4}>Data Pengajuan Tidak Ditemukan</Title>
|
||||
|
||||
<Text size="sm" c="dimmed" ta="center" maw={380}>
|
||||
Kami tidak dapat menemukan data pengajuan dengan nomor pengajuan yg diinputkan. Silakan periksa kembali data Anda.
|
||||
</Text>
|
||||
|
||||
<Group mt="md">
|
||||
{/* {onRetry && (
|
||||
<Button
|
||||
variant="light"
|
||||
leftSection={<IconSearch size={16} />}
|
||||
onClick={onRetry}
|
||||
>
|
||||
Cari Ulang
|
||||
</Button>
|
||||
)} */}
|
||||
|
||||
<Button
|
||||
variant="outline"
|
||||
// leftSection={<IconArrowLeft size={16} />}
|
||||
onClick={backTo}
|
||||
>
|
||||
Cari Kembali
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
</Center>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user