This commit is contained in:
Tusooa Zhu 2021-08-07 18:59:48 -04:00
parent 05b2351e08
commit 0aaef50ee5
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
2 changed files with 7 additions and 6 deletions

View file

@ -39,7 +39,6 @@ const controlledOrUncontrolledGetters = list => list.reduce((res, name) => {
const controlledOrUncontrolledToggle = (obj, name) => {
const camelized = camelCase(name)
const toggle = `controlledToggle${camelized}`
const controlledName = `controlled${camelized}`
const uncontrolledName = `uncontrolled${camelized}`
if (obj[toggle]) {
obj[toggle]()