Skip to content

Commit 315b2a4

Browse files
committed
Fixed toggle sometimes showing a flicker of the wrong state
1 parent 01ae097 commit 315b2a4

3 files changed

Lines changed: 4077 additions & 52 deletions

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dark-mode-toggle-2",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "An updated, cute dark mode toggle button for React.",
55
"module": "dist/index.es.js",
66
"types": "dist/index.d.ts",
@@ -93,5 +93,8 @@
9393
"./{src,stories}/**/*.{ts,tsx,js,jsx}": [
9494
"prettier --write"
9595
]
96+
},
97+
"prettier": {
98+
"printWidth": 120
9699
}
97100
}

0 commit comments

Comments
 (0)