Skip to content

Commit c3d1503

Browse files
committed
feat: Logo to Chakra
1 parent 29e86e6 commit c3d1503

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Logo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import { useStaticQuery, graphql } from "gatsby"
3-
import { useTheme } from "@emotion/react"
3+
import { useColorMode } from "@chakra-ui/react"
44
import { GatsbyImage } from "gatsby-plugin-image"
55
import { useIntl } from "react-intl"
66

@@ -11,8 +11,8 @@ export interface IProps {}
1111

1212
const Logo: React.FC<IProps> = () => {
1313
const intl = useIntl()
14-
const theme = useTheme()
15-
const isDarkTheme = theme.isDark
14+
const { colorMode } = useColorMode()
15+
const isDarkTheme = colorMode === "dark"
1616
const data = useStaticQuery(graphql`
1717
{
1818
dark: file(relativePath: { eq: "ef-logo.png" }) {

0 commit comments

Comments
 (0)