diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-20 13:41:21 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-20 13:41:21 +0000 |
| commit | 560493ddac8d1ec013bec55fc3a4eb06ba0e0138 (patch) | |
| tree | 0e13c814a104b876e08cb56144d71a4df40e9cf1 | |
| parent | 0e490324db0ff0bcf49dd5a58230cafdb743cd97 (diff) | |
| parent | 16db179d5bb5ebd3ce946fb6e682539ffc8f728e (diff) | |
Merged in bug-onload (pull request #250)
<iman> update avoid error
| -rw-r--r-- | src/core/components/elements/Navbar/TopBanner.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Navbar/TopBanner.jsx b/src/core/components/elements/Navbar/TopBanner.jsx index 5ea8f635..f438ae67 100644 --- a/src/core/components/elements/Navbar/TopBanner.jsx +++ b/src/core/components/elements/Navbar/TopBanner.jsx @@ -6,7 +6,7 @@ import Link from '../Link/Link'; import { background } from '@chakra-ui/react'; import { useEffect } from 'react'; -const TopBanner = ({ onLoad }) => { +const TopBanner = ({ onLoad = () => {} }) => { const { isDesktop, isMobile } = useDevice() const topBanner = useQuery({ queryKey: 'topBanner', |
