rewrit HudozkaLogo to use dark style natively
This commit is contained in:
1 parent
73c02d34c4
commit
37e2fc9ea5
4 files changed
+36
-37
No files matched your search
@@ -2,8 +2,7 @@ import { Menu } from "../Menu"
|
||||
import { useContext } from "react"
|
||||
import { MenuContext } from "@/context/MenuContext"
|
||||
import { Box } from "@/ui/Box"
|
||||
import { HudozkaLogo } from "../HudozkaLogo"
|
||||
import { useDarkTheme } from "@/hooks/useDarkTheme"
|
||||
import HudozkaLogo from "../HudozkaLogo"
|
||||
import Link from "next/link"
|
||||
import { AccessibilityButton } from "../AccessibilityButton"
|
||||
import { Spacer } from "../Spacer"
|
||||
@@ -13,13 +12,12 @@ export type DesktopNavigationProps = {
|
||||
}
|
||||
|
||||
export const DesktopNavigation: React.FC<DesktopNavigationProps> = ({ style }) => {
|
||||
const dark = useDarkTheme()
|
||||
const menu = useContext(MenuContext)
|
||||
|
||||
return (
|
||||
<Box wrap gap={"var(--size-s)"} style={style}>
|
||||
<Link href="/">
|
||||
<HudozkaLogo dark={dark} />
|
||||
<HudozkaLogo />
|
||||
</Link>
|
||||
|
||||
<Menu
|
||||
|
||||
@@ -6,8 +6,7 @@ import { MenuContext } from "@/context/MenuContext"
|
||||
import { Box } from "@/ui/Box"
|
||||
import { Spacer } from "../Spacer"
|
||||
import { useToggle } from "react-use"
|
||||
import { HudozkaLogo } from "../HudozkaLogo"
|
||||
import { useDarkTheme } from "@/hooks/useDarkTheme"
|
||||
import HudozkaLogo from "../HudozkaLogo"
|
||||
import { HudozkaTitle } from "../HudozkaTitle"
|
||||
import Link from "next/link"
|
||||
|
||||
@@ -16,7 +15,6 @@ export type MobileNavigationProps = {
|
||||
}
|
||||
|
||||
export const MobileNavigation: React.FC<MobileNavigationProps> = ({ style }) => {
|
||||
const dark = useDarkTheme()
|
||||
const [open, toggleOpen] = useToggle(false)
|
||||
const menu = useContext(MenuContext)
|
||||
|
||||
@@ -48,7 +46,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ style }) =>
|
||||
|
||||
<Box wrap gap={"var(--size-s)"} style={style}>
|
||||
<Link href="/">
|
||||
<HudozkaLogo dark={dark} />
|
||||
<HudozkaLogo />
|
||||
</Link>
|
||||
<HudozkaTitle compact />
|
||||
<Spacer />
|
||||
|
||||
Reference in new issue
Block a user