amalia/29-apr-26 #16

Merged
amaliadwiy merged 15 commits from amalia/29-apr-26 into main 2026-04-29 17:40:58 +08:00
15 changed files with 565 additions and 319 deletions
Showing only changes of commit 5050835d81 - Show all commits

View File

@@ -70,6 +70,7 @@ import {
TbUserSearch,
TbUsers,
} from 'react-icons/tb'
import { notifications } from '@mantine/notifications'
import { type Role, useLogout, useSession } from '@/frontend/hooks/useAuth'
import { usePresence } from '@/frontend/hooks/usePresence'
@@ -1517,6 +1518,10 @@ function SettingsPanel() {
qc.invalidateQueries({ queryKey: ['admin', 'config'] })
setSaved(true)
setTimeout(() => setSaved(false), 2000)
notifications.show({ color: 'green', title: 'Tersimpan', message: 'Konfigurasi berhasil disimpan.' })
},
onError: () => {
notifications.show({ color: 'red', title: 'Gagal', message: 'Terjadi kesalahan saat menyimpan konfigurasi.' })
},
})