-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Consider following scenario:
const SomeComponent: FC = () => {
const {
dispatchFileAction,
files
} = useFile()
return (
<button
onClick={ (): void => {
Reoverlay.showModal(FileBrowserModal, {
files,
onFolderOpen: (file): void => {
void dispatchFileAction({
payload: file.key,
type: EFileAction.openDirectory
})
}
})
} }
type="button"
>
Toggle File Browser
</button>
)
}How would I correctly update properties of the used modal FileBrowserModal?
Would be a static method like Reoverlay.updateProps feasable?
Metadata
Metadata
Assignees
Labels
No labels