✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
decrease news debounce
AykutSaracfc5d880c7454
diff --git a/src/containers/Modals/HerowandModal/index.tsx b/src/containers/Modals/HerowandModal/index.tsxindex 2e1d0941..f91e43d3 100644--- a/src/containers/Modals/HerowandModal/index.tsx+++ b/src/containers/Modals/HerowandModal/index.tsx@@ -3,13 +3,15 @@ import { Modal, Group, Button, MantineProvider, Image, Text, Paper } from "@mantimport { useDebouncedState, useSessionStorage } from "@mantine/hooks";export const HerowandModal = () => {- const [opened, setOpened] = useDebouncedState(false, 600);+ const [opened, setOpened] = useDebouncedState(false, 300);const [isNewsVisible, setNewsVisible] = useSessionStorage<boolean>({key: "news",defaultValue: true,getInitialValueInEffect: true,});+ console.log(isNewsVisible);+React.useEffect(() => {if (isNewsVisible) setOpened(true);else setOpened(false);