Fix image di seafile sudah tidak pakai token tapi by folder di seafile
Kasih console di page profil ppid & visi misi di Profile Desa
This commit is contained in:
@@ -13,9 +13,9 @@ function VisiMisiDesa() {
|
||||
state.findUnique.load('edit');
|
||||
}, []);
|
||||
|
||||
const { data, loading } = state.findUnique;
|
||||
const { data, loading, error } = state.findUnique;
|
||||
|
||||
if (loading || !data) {
|
||||
if (loading) {
|
||||
return (
|
||||
<Box py="xl">
|
||||
<Skeleton h={500} radius="lg" />
|
||||
@@ -23,6 +23,21 @@ function VisiMisiDesa() {
|
||||
);
|
||||
}
|
||||
|
||||
if (error || !data) {
|
||||
return (
|
||||
<Box py="xl">
|
||||
<Paper p="xl" radius="lg" shadow="md" withBorder>
|
||||
<Title order={2} c="red" ta="center" mb="md">
|
||||
Terjadi Kesalahan
|
||||
</Title>
|
||||
<Text ta="center" c="dimmed">
|
||||
{error || 'Data visi dan misi desa tidak ditemukan'}
|
||||
</Text>
|
||||
</Paper>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Stack align="center" gap="xl">
|
||||
|
||||
Reference in New Issue
Block a user