Skip to content

Commit 9e06a4e

Browse files
committed
remove unused code
1 parent 4384b3c commit 9e06a4e

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/components/Nav/index.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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"
33
import { MdWbSunny, MdBrightness2, MdLanguage } from "react-icons/md"
44
import styled from "@emotion/styled"
55
import { cloneDeep } from "lodash"
@@ -8,7 +8,6 @@ import { useIntl } from "react-intl"
88
import Menu from "./Menu"
99
import MobileNavMenu from "./Mobile"
1010
import ButtonLink from "../ButtonLink"
11-
import NakedButton from "../NakedButton"
1211
import Link from "../Link"
1312
import Search from "../Search"
1413
import Translation from "../Translation"
@@ -97,25 +96,6 @@ const HomeLogo = styled(HomeIcon)`
9796
}
9897
`
9998

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-
11999
export interface IProps {
120100
path: string
121101
}

0 commit comments

Comments
 (0)