feat: implement settings menu with umum, notifikasi, keamanan, and akses & tim sections
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
53
src/routes/dashboard/pengaturan/notifikasi.tsx
Normal file
53
src/routes/dashboard/pengaturan/notifikasi.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
import { Card, Title, Text, Space, Switch, Group, Alert, Checkbox, Button } from '@mantine/core';
|
||||
import { IconInfoCircle } from '@tabler/icons-react';
|
||||
|
||||
const NotifikasiSettings = () => {
|
||||
return (
|
||||
<Card withBorder radius="md" p="xl">
|
||||
<Title order={2} mb="lg">Pengaturan Notifikasi</Title>
|
||||
<Text color="dimmed" mb="xl">Kelola preferensi notifikasi Anda</Text>
|
||||
|
||||
<Space h="lg" />
|
||||
|
||||
<Checkbox.Group defaultValue={['email', 'push']} mb="md">
|
||||
<Title order={4} mb="sm">Metode Notifikasi</Title>
|
||||
<Group>
|
||||
<Checkbox value="email" label="Email" />
|
||||
<Checkbox value="push" label="Notifikasi Push" />
|
||||
<Checkbox value="sms" label="SMS" />
|
||||
</Group>
|
||||
</Checkbox.Group>
|
||||
|
||||
<Space h="md" />
|
||||
|
||||
<Group mb="md">
|
||||
<Switch label="Notifikasi Email" defaultChecked />
|
||||
<Switch label="Notifikasi Push" defaultChecked />
|
||||
</Group>
|
||||
|
||||
<Space h="md" />
|
||||
|
||||
<Title order={4} mb="sm">Jenis Notifikasi</Title>
|
||||
<Group direction="column" align="start">
|
||||
<Switch label="Pengaduan Baru" defaultChecked />
|
||||
<Switch label="Update Status Pengaduan" defaultChecked />
|
||||
<Switch label="Laporan Mingguan" />
|
||||
<Switch label="Pemberitahuan Keamanan" defaultChecked />
|
||||
<Switch label="Aktivitas Akun" defaultChecked />
|
||||
</Group>
|
||||
|
||||
<Space h="md" />
|
||||
|
||||
<Alert icon={<IconInfoCircle size={16} />} title="Tip" color="blue" mb="md">
|
||||
Anda dapat menyesuaikan frekuensi notifikasi mingguan sesuai kebutuhan Anda.
|
||||
</Alert>
|
||||
|
||||
<Group justify="flex-end" mt="xl">
|
||||
<Button variant="outline">Batal</Button>
|
||||
<Button>Simpan Preferensi</Button>
|
||||
</Group>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default NotifikasiSettings;
|
||||
Reference in New Issue
Block a user