From bdcb6cc55aa72d6af4e2aecf5ca019d3b93fe144 Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Mon, 20 Jul 2020 18:02:33 +0300 Subject: [PATCH] custom dark mode --- gatsby-config.js | 1 - gatsby-ssr.js | 39 +++++++++++++++++++++++++++++++++ package-lock.json | 8 ------- package.json | 1 - src/components/Header/Header.js | 15 ++++++++----- 5 files changed, 49 insertions(+), 15 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 4b47e2c..1822095 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -40,7 +40,6 @@ 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 749365e..be40394 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1 +1,40 @@ +import React from 'react'; import 'firebase/database'; + +const OnDark = () => { + return ( +