@t2ca/gatsby-theme-showcase 1.0.113 → 1.0.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -91,14 +91,16 @@ const ColorModeToggle = () => {
91
91
  const { theme, colorMode, setColorMode } = context
92
92
  const isDark = colorMode === `dark`
93
93
 
94
- const toggleColorMode = (e) => {
95
- e.preventDefault()
96
- setColorMode(isDark ? `light` : `dark`)
97
- }
94
+ // const toggleColorMode = (e) => {
95
+ // e.preventDefault()
96
+ // setColorMode(isDark ? `light` : `dark`)
97
+ // }
98
98
 
99
99
  return (
100
100
  <IconWrapper
101
- onClick={toggleColorMode}
101
+ onClick={(e) => {
102
+ setColorMode(colorMode === "default" ? "dark" : "default")
103
+ }}
102
104
  aria-label={isDark ? `Activate light mode` : `Activate dark mode`}
103
105
  title={isDark ? `Activate light mode` : `Activate dark mode`}
104
106
  >