diff --git a/src/module/_global/components/notification_custome.tsx b/src/module/_global/components/notification_custome.tsx index 3a827e7..eb47e9e 100644 --- a/src/module/_global/components/notification_custome.tsx +++ b/src/module/_global/components/notification_custome.tsx @@ -3,9 +3,12 @@ import { Box, Center, Flex, Grid, rem, Text, Transition } from '@mantine/core'; import { useShallowEffect } from '@mantine/hooks'; import React, { useState } from 'react'; import { IoCloseOutline, IoNotifications } from 'react-icons/io5'; +import { TEMA } from '../bin/val_global'; +import { useHookstate } from '@hookstate/core'; -export default function NotificationCustome({ onClose, title, desc, bg, color, onClick, borderColor }: { onClose: () => void, title: string, desc: string, bg: string, color: string, onClick: () => void, borderColor: string }) { +export default function NotificationCustome({ onClose, title, desc, onClick }: { onClose: () => void, title: string, desc: string, onClick: () => void, }) { const [opened, setOpened] = useState(false); + const tema = useHookstate(TEMA) useShallowEffect(() => { const timer = setTimeout(() => { @@ -49,23 +52,23 @@ export default function NotificationCustome({ onClose, title, desc, bg, color, o - - + + - {title} - {desc} + {title} + {desc} - - + + diff --git a/src/module/_global/components/reload_button_top.tsx b/src/module/_global/components/reload_button_top.tsx index 3aeb1a5..d60bb0d 100644 --- a/src/module/_global/components/reload_button_top.tsx +++ b/src/module/_global/components/reload_button_top.tsx @@ -1,11 +1,14 @@ "use client" +import { useHookstate } from '@hookstate/core'; import { Button, Center, Transition } from '@mantine/core'; import { useShallowEffect } from '@mantine/hooks'; import React, { useState } from 'react'; import { IoReload } from 'react-icons/io5'; +import { TEMA } from '../bin/val_global'; export default function ReloadButtonTop({ onReload, title }: { onReload: () => void, title: string }) { const [opened, setOpened] = useState(false); + const tema = useHookstate(TEMA) useShallowEffect(() => { const timer = setTimeout(() => { @@ -40,7 +43,9 @@ export default function ReloadButtonTop({ onReload, title }: { onReload: () => v alignItems: 'center', }} > - + )} diff --git a/src/module/home/ui/view_home.tsx b/src/module/home/ui/view_home.tsx index 2d90ef9..a9f2f65 100644 --- a/src/module/home/ui/view_home.tsx +++ b/src/module/home/ui/view_home.tsx @@ -25,23 +25,20 @@ export default function ViewHome() { - {/* { '' } } title='UPDATE' - /> */} - + {/* {''}} onClose={() => {''}} - /> + /> */}