Fix: Event
Deksripsi - Fix notifikasi - Fix load beranda - Fix reload button di admin
This commit is contained in:
@@ -189,10 +189,10 @@ export default function AdminLayout({
|
||||
</Box>
|
||||
));
|
||||
|
||||
async function onLoadNotifikasi() {
|
||||
const loadNotif = await adminNotifikasi_getByUserId();
|
||||
setDataNotif(loadNotif as any);
|
||||
}
|
||||
// async function onLoadNotifikasi() {
|
||||
// const loadNotif = await adminNotifikasi_getByUserId();
|
||||
// setDataNotif(loadNotif as any);
|
||||
// }
|
||||
|
||||
useEffect(() => {
|
||||
mqtt_client.subscribe("ADMIN");
|
||||
@@ -226,7 +226,7 @@ export default function AdminLayout({
|
||||
radius={"xl"}
|
||||
onClick={() => {
|
||||
setIsNotif(true);
|
||||
onLoadNotifikasi();
|
||||
// onLoadNotifikasi();
|
||||
}}
|
||||
>
|
||||
<Indicator
|
||||
|
||||
Reference in New Issue
Block a user