We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e86e6 commit c3d1503Copy full SHA for c3d1503
src/components/Logo.tsx
@@ -1,6 +1,6 @@
1
import React from "react"
2
import { useStaticQuery, graphql } from "gatsby"
3
-import { useTheme } from "@emotion/react"
+import { useColorMode } from "@chakra-ui/react"
4
import { GatsbyImage } from "gatsby-plugin-image"
5
import { useIntl } from "react-intl"
6
@@ -11,8 +11,8 @@ export interface IProps {}
11
12
const Logo: React.FC<IProps> = () => {
13
const intl = useIntl()
14
- const theme = useTheme()
15
- const isDarkTheme = theme.isDark
+ const { colorMode } = useColorMode()
+ const isDarkTheme = colorMode === "dark"
16
const data = useStaticQuery(graphql`
17
{
18
dark: file(relativePath: { eq: "ef-logo.png" }) {
0 commit comments