diff --git a/gatsby-browser.js b/gatsby-browser.js
index d60b3ec..dd24a3c 100644
--- a/gatsby-browser.js
+++ b/gatsby-browser.js
@@ -1,5 +1,4 @@
import 'firebase/database';
-import React from "react"
import './src/styles/global.scss'
import './src/components/Header/Header.scss'
import './src/components/About/About.scss'
@@ -18,12 +17,6 @@ import './src/components/Footer/Footer.scss'
import 'prismjs/themes/prism-tomorrow.css'
import 'prismjs/plugins/line-numbers/prism-line-numbers.css'
-import { ThemeProvider } from "./src/context/ThemeContext"
-
-export const wrapRootElement = ({ element }) => (
- {element}
-)
-
export const shouldUpdateScroll = ({
routerProps: { location }
}) => {
diff --git a/gatsby-config.js b/gatsby-config.js
index 1822095..4b47e2c 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -40,6 +40,7 @@ module.exports = {
}
},
plugins: [
+ 'gatsby-plugin-dark-mode',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
diff --git a/gatsby-ssr.js b/gatsby-ssr.js
index 111592f..749365e 100644
--- a/gatsby-ssr.js
+++ b/gatsby-ssr.js
@@ -1,42 +1 @@
-import React from 'react';
-import ThemeContext from './src/context/ThemeContext'
import 'firebase/database';
-
-const OnDark = () => {
- return (
-