fix: fix the initial displaying state of dropdown menu

This commit is contained in:
Hossein Mehrabi
2023-06-05 18:59:28 +03:30
parent 223d6c4d8b
commit c6a627dfb6
@@ -36,7 +36,7 @@ function DropdownNavbarItemDesktop({
...props
}) {
const dropdownRef = useRef<HTMLDivElement>(null)
const [showDropdown, setShowDropdown] = useState(true)
const [showDropdown, setShowDropdown] = useState(false)
useEffect(() => {
const handleClickOutside = (event) => {