style(checkbox): remove unnecessary default value of context

This commit is contained in:
unix
2020-04-16 11:28:34 +08:00
parent af50f3e2dc
commit 446052a090

View File

@@ -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: [],
}