mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 12:45:32 +08:00
style(checkbox): remove unnecessary default value of context
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
export interface CheckboxConfig {
|
||||
updateState: (value: string, checked: boolean) => void
|
||||
updateState?: (value: string, checked: boolean) => void
|
||||
disabledAll: boolean
|
||||
values: string[]
|
||||
inGroup: boolean
|
||||
@@ -9,7 +9,6 @@ export interface CheckboxConfig {
|
||||
|
||||
const defaultContext = {
|
||||
disabledAll: false,
|
||||
updateState: () => {},
|
||||
inGroup: false,
|
||||
values: [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user