This commit is contained in:
Matthias Kretschmann 2019-11-12 00:45:08 +01:00
parent 796dfc64fa
commit 66969b956e
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 17 additions and 17 deletions

View File

@ -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",

View File

@ -21,7 +21,7 @@ export default function useDarkMode() {
const weWantItDarkTimes = now >= sunset || now <= sunrise
weWantItDarkTimes && setDarkMode(true)
}
}, [darkLocalStorage])
}, [darkLocalStorage, darkMode])
function toggleDark() {
setDarkMode(!darkMode)