Skip to content

Commit 86bd4b9

Browse files
committed
Refatorar navegação responsiva
Remover o hook `useIsMobile` e utilizar classes de responsividade do Tailwind CSS para controlar a visibilidade dos links de navegação e do menu dropdown no Header.
1 parent 79cc171 commit 86bd4b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/DocsResponsiveSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from "@/components/ui/sheet";
1010
import { cn } from "@/lib/utils";
1111
import { Menu } from "lucide-react";
12-
import { useState, useEffect } from "react";
12+
import { useEffect, useState } from "react";
1313

1414
export interface SidebarItem {
1515
id: string;
@@ -34,7 +34,7 @@ export function DocsResponsiveSidebar({
3434
const [isOpen, setIsOpen] = useState(false);
3535

3636
useEffect(() => {
37-
const mql = window.matchMedia('(min-width: 1024px)');
37+
const mql = window.matchMedia("(min-width: 1024px)");
3838
const onChange = () => {
3939
setIsLargeScreen(window.innerWidth >= 1024);
4040
};

0 commit comments

Comments
 (0)