From 66969b956ef2d6a994f585b33b7cd77612f9d1ce Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 12 Nov 2019 00:45:08 +0100 Subject: [PATCH] fixes --- package.json | 32 ++++++++++++++++---------------- src/hooks/use-dark-mode.js | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 843d424..11aa7cc 100644 --- a/package.json +++ b/package.json @@ -26,21 +26,21 @@ "dependencies": { "axios": "^0.19.0", "file-saver": "^2.0.2", - "gatsby": "^2.17.10", - "gatsby-image": "^2.2.30", - "gatsby-plugin-manifest": "^2.2.26", + "gatsby": "^2.17.11", + "gatsby-image": "^2.2.31", + "gatsby-plugin-manifest": "^2.2.27", "gatsby-plugin-matomo": "^0.7.2", - "gatsby-plugin-offline": "^3.0.18", - "gatsby-plugin-react-helmet": "^3.1.13", - "gatsby-plugin-sass": "^2.1.20", - "gatsby-plugin-sharp": "^2.2.36", - "gatsby-plugin-sitemap": "^2.2.19", + "gatsby-plugin-offline": "^3.0.19", + "gatsby-plugin-react-helmet": "^3.1.14", + "gatsby-plugin-sass": "^2.1.21", + "gatsby-plugin-sharp": "^2.2.37", + "gatsby-plugin-sitemap": "^2.2.20", "gatsby-plugin-svgr": "^2.0.2", "gatsby-plugin-webpack-size": "^1.0.0", - "gatsby-source-filesystem": "^2.1.35", - "gatsby-transformer-json": "^2.2.16", - "gatsby-transformer-sharp": "^2.3.2", - "gatsby-transformer-yaml": "^2.2.15", + "gatsby-source-filesystem": "^2.1.36", + "gatsby-transformer-json": "^2.2.17", + "gatsby-transformer-sharp": "^2.3.3", + "gatsby-transformer-yaml": "^2.2.16", "giphy-js-sdk-core": "^1.0.6", "graphql": "^14.5.8", "intersection-observer": "^0.7.0", @@ -48,9 +48,9 @@ "react-dom": "^16.11.0", "react-helmet": "^5.2.1", "react-pose": "^4.0.9", - "remark": "^11.0.1", + "remark": "^11.0.2", "remark-html": "^10.0.0", - "remark-parse": "^7.0.1", + "remark-parse": "^7.0.2", "shortid": "^2.2.15", "suncalc": "^1.8.0", "vcf": "^2.0.6" @@ -65,7 +65,7 @@ "@testing-library/react": "^9.3.2", "babel-eslint": "^10.0.3", "babel-jest": "^24.9.0", - "babel-preset-gatsby": "^0.2.20", + "babel-preset-gatsby": "^0.2.21", "chalk": "^3.0.0", "eslint": "^6.6.0", "eslint-config-prettier": "^6.5.0", @@ -82,7 +82,7 @@ "node-sass": "^4.13.0", "ora": "^4.0.0", "prepend": "^1.0.2", - "prettier": "^1.18.2", + "prettier": "^1.19.1", "prettier-stylelint": "^0.4.2", "slugify": "^1.3.6", "stylelint": "^11.1.1", diff --git a/src/hooks/use-dark-mode.js b/src/hooks/use-dark-mode.js index f54ccd2..a403057 100644 --- a/src/hooks/use-dark-mode.js +++ b/src/hooks/use-dark-mode.js @@ -21,7 +21,7 @@ export default function useDarkMode() { const weWantItDarkTimes = now >= sunset || now <= sunrise weWantItDarkTimes && setDarkMode(true) } - }, [darkLocalStorage]) + }, [darkLocalStorage, darkMode]) function toggleDark() { setDarkMode(!darkMode)