feat: fixing navbar

This commit is contained in:
hanif salafi 2024-12-31 15:24:25 +07:00
parent 6a475e88a7
commit be8e5def26
1 changed files with 1 additions and 9 deletions

View File

@ -73,14 +73,6 @@ const Navbar = () => {
setIsOpen(false); setIsOpen(false);
}; };
const [hasMounted, setHasMounted] = useState(false);
// Hooks
useEffect(() => {
setHasMounted(true);
}, []);
// Render
if (!hasMounted) return null;
useEffect(() => { useEffect(() => {
async function initState() { async function initState() {
const response = await getInfoProfile(); const response = await getInfoProfile();