mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
fixes
This commit is contained in:
parent
796dfc64fa
commit
66969b956e
32
package.json
32
package.json
@ -26,21 +26,21 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
"file-saver": "^2.0.2",
|
"file-saver": "^2.0.2",
|
||||||
"gatsby": "^2.17.10",
|
"gatsby": "^2.17.11",
|
||||||
"gatsby-image": "^2.2.30",
|
"gatsby-image": "^2.2.31",
|
||||||
"gatsby-plugin-manifest": "^2.2.26",
|
"gatsby-plugin-manifest": "^2.2.27",
|
||||||
"gatsby-plugin-matomo": "^0.7.2",
|
"gatsby-plugin-matomo": "^0.7.2",
|
||||||
"gatsby-plugin-offline": "^3.0.18",
|
"gatsby-plugin-offline": "^3.0.19",
|
||||||
"gatsby-plugin-react-helmet": "^3.1.13",
|
"gatsby-plugin-react-helmet": "^3.1.14",
|
||||||
"gatsby-plugin-sass": "^2.1.20",
|
"gatsby-plugin-sass": "^2.1.21",
|
||||||
"gatsby-plugin-sharp": "^2.2.36",
|
"gatsby-plugin-sharp": "^2.2.37",
|
||||||
"gatsby-plugin-sitemap": "^2.2.19",
|
"gatsby-plugin-sitemap": "^2.2.20",
|
||||||
"gatsby-plugin-svgr": "^2.0.2",
|
"gatsby-plugin-svgr": "^2.0.2",
|
||||||
"gatsby-plugin-webpack-size": "^1.0.0",
|
"gatsby-plugin-webpack-size": "^1.0.0",
|
||||||
"gatsby-source-filesystem": "^2.1.35",
|
"gatsby-source-filesystem": "^2.1.36",
|
||||||
"gatsby-transformer-json": "^2.2.16",
|
"gatsby-transformer-json": "^2.2.17",
|
||||||
"gatsby-transformer-sharp": "^2.3.2",
|
"gatsby-transformer-sharp": "^2.3.3",
|
||||||
"gatsby-transformer-yaml": "^2.2.15",
|
"gatsby-transformer-yaml": "^2.2.16",
|
||||||
"giphy-js-sdk-core": "^1.0.6",
|
"giphy-js-sdk-core": "^1.0.6",
|
||||||
"graphql": "^14.5.8",
|
"graphql": "^14.5.8",
|
||||||
"intersection-observer": "^0.7.0",
|
"intersection-observer": "^0.7.0",
|
||||||
@ -48,9 +48,9 @@
|
|||||||
"react-dom": "^16.11.0",
|
"react-dom": "^16.11.0",
|
||||||
"react-helmet": "^5.2.1",
|
"react-helmet": "^5.2.1",
|
||||||
"react-pose": "^4.0.9",
|
"react-pose": "^4.0.9",
|
||||||
"remark": "^11.0.1",
|
"remark": "^11.0.2",
|
||||||
"remark-html": "^10.0.0",
|
"remark-html": "^10.0.0",
|
||||||
"remark-parse": "^7.0.1",
|
"remark-parse": "^7.0.2",
|
||||||
"shortid": "^2.2.15",
|
"shortid": "^2.2.15",
|
||||||
"suncalc": "^1.8.0",
|
"suncalc": "^1.8.0",
|
||||||
"vcf": "^2.0.6"
|
"vcf": "^2.0.6"
|
||||||
@ -65,7 +65,7 @@
|
|||||||
"@testing-library/react": "^9.3.2",
|
"@testing-library/react": "^9.3.2",
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"babel-jest": "^24.9.0",
|
"babel-jest": "^24.9.0",
|
||||||
"babel-preset-gatsby": "^0.2.20",
|
"babel-preset-gatsby": "^0.2.21",
|
||||||
"chalk": "^3.0.0",
|
"chalk": "^3.0.0",
|
||||||
"eslint": "^6.6.0",
|
"eslint": "^6.6.0",
|
||||||
"eslint-config-prettier": "^6.5.0",
|
"eslint-config-prettier": "^6.5.0",
|
||||||
@ -82,7 +82,7 @@
|
|||||||
"node-sass": "^4.13.0",
|
"node-sass": "^4.13.0",
|
||||||
"ora": "^4.0.0",
|
"ora": "^4.0.0",
|
||||||
"prepend": "^1.0.2",
|
"prepend": "^1.0.2",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.19.1",
|
||||||
"prettier-stylelint": "^0.4.2",
|
"prettier-stylelint": "^0.4.2",
|
||||||
"slugify": "^1.3.6",
|
"slugify": "^1.3.6",
|
||||||
"stylelint": "^11.1.1",
|
"stylelint": "^11.1.1",
|
||||||
|
@ -21,7 +21,7 @@ export default function useDarkMode() {
|
|||||||
const weWantItDarkTimes = now >= sunset || now <= sunrise
|
const weWantItDarkTimes = now >= sunset || now <= sunrise
|
||||||
weWantItDarkTimes && setDarkMode(true)
|
weWantItDarkTimes && setDarkMode(true)
|
||||||
}
|
}
|
||||||
}, [darkLocalStorage])
|
}, [darkLocalStorage, darkMode])
|
||||||
|
|
||||||
function toggleDark() {
|
function toggleDark() {
|
||||||
setDarkMode(!darkMode)
|
setDarkMode(!darkMode)
|
||||||
|
Loading…
Reference in New Issue
Block a user