File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/components/Nav/Client Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { BsTranslate } from "react-icons/bs"
7
7
8
8
import SearchButton from "@/components/Search/SearchButton"
9
9
import SearchInputButton from "@/components/Search/SearchInputButton"
10
- import { Button } from "@/components/ui/buttons/Button"
11
10
import { Skeleton } from "@/components/ui/skeleton"
12
11
13
12
import { DESKTOP_LANGUAGE_BUTTON_NAME } from "@/lib/constants"
@@ -18,6 +17,19 @@ import { useThemeToggle } from "../useThemeToggle"
18
17
import { useBreakpointValue } from "@/hooks/useBreakpointValue"
19
18
import { useTranslation } from "@/hooks/useTranslation"
20
19
20
+ const Button = dynamic (
21
+ ( ) => import ( "../../ui/buttons/Button" ) . then ( ( mod ) => mod . Button ) ,
22
+ {
23
+ ssr : false ,
24
+ loading : ( ) => (
25
+ < Skeleton
26
+ data-label = "mobile-menu"
27
+ className = "mx-3 size-6 px-3 max-md:hidden"
28
+ />
29
+ ) ,
30
+ }
31
+ )
32
+
21
33
const Menu = dynamic ( ( ) => import ( "../Menu" ) , {
22
34
ssr : false ,
23
35
loading : ( ) => (
You can’t perform that action at this time.
0 commit comments