Add default props to GroupProvider
This commit is contained in:
parent
1a34dc756a
commit
5db2b30bc1
@ -134,6 +134,13 @@ export function GroupProvider({
|
||||
);
|
||||
}
|
||||
|
||||
GroupProvider.defaultProps = {
|
||||
groups: [],
|
||||
onGroupsChange: () => {},
|
||||
onGroupsSelect: () => {},
|
||||
disabled: false,
|
||||
};
|
||||
|
||||
export function useGroup() {
|
||||
const context = useContext(GroupContext);
|
||||
if (context === undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user