1
1
import React , { useState } from "react"
2
- import { Flex , Icon , IconButton , Text , useColorMode } from "@chakra-ui/react"
2
+ import { Icon , IconButton , Text , useColorMode } from "@chakra-ui/react"
3
3
import { MdWbSunny , MdBrightness2 , MdLanguage } from "react-icons/md"
4
4
import styled from "@emotion/styled"
5
5
import { cloneDeep } from "lodash"
@@ -8,7 +8,6 @@ import { useIntl } from "react-intl"
8
8
import Menu from "./Menu"
9
9
import MobileNavMenu from "./Mobile"
10
10
import ButtonLink from "../ButtonLink"
11
- import NakedButton from "../NakedButton"
12
11
import Link from "../Link"
13
12
import Search from "../Search"
14
13
import Translation from "../Translation"
@@ -97,25 +96,6 @@ const HomeLogo = styled(HomeIcon)`
97
96
}
98
97
`
99
98
100
- const Span = styled . span `
101
- padding-left: 0.5rem;
102
- `
103
-
104
- const ThemeToggle = styled ( NakedButton ) `
105
- margin-left: 1rem;
106
- display: flex;
107
- align-items: center;
108
- &:hover {
109
- svg {
110
- fill: ${ ( props ) => props . theme . colors . primary } ;
111
- }
112
- }
113
- `
114
-
115
- const NavIcon = styled ( Icon ) `
116
- fill: ${ ( props ) => props . theme . colors . text } ;
117
- `
118
-
119
99
export interface IProps {
120
100
path : string
121
101
}
0 commit comments