File tree Expand file tree Collapse file tree
src/library-authoring/component-picker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,17 +53,10 @@ type ComponentPickerProps = {
5353 showOnlyPublished ?: boolean ,
5454 extraFilter ?: string [ ] ,
5555 visibleTabs ?: ContentType [ ] ,
56- } & (
57- {
58- componentPickerMode ?: 'single' ,
59- onComponentSelected : ComponentSelectedEvent ,
60- onChangeComponentSelection ?: ComponentSelectionChangedEvent ,
61- } | {
62- componentPickerMode ?: 'multiple'
63- onComponentSelected ?: ComponentSelectedEvent ,
64- onChangeComponentSelection ?: ComponentSelectionChangedEvent ,
65- }
66- ) ;
56+ componentPickerMode ?: 'single' | 'multiple' ,
57+ onComponentSelected ?: ComponentSelectedEvent ,
58+ onChangeComponentSelection ?: ComponentSelectionChangedEvent ,
59+ } ;
6760
6861export const ComponentPicker : React . FC < ComponentPickerProps > = ( {
6962 /** Restrict the component picker to a specific library */
You can’t perform that action at this time.
0 commit comments