refactor(dev-only): file preview navigation from table view
This commit is contained in:
@@ -23,10 +23,6 @@ const FilePreviewModal: FunctionComponent<Props> = observer(({ application, view
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!application.isAuthorizedToRenderItem(currentFile)) {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
const [showFileInfoPanel, setShowFileInfoPanel] = useState(false)
|
const [showFileInfoPanel, setShowFileInfoPanel] = useState(false)
|
||||||
const closeButtonRef = useRef<HTMLButtonElement>(null)
|
const closeButtonRef = useRef<HTMLButtonElement>(null)
|
||||||
|
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ const FilesTableView = ({ application, filesController, featuresController, link
|
|||||||
type: FileItemActionType.PreviewFile,
|
type: FileItemActionType.PreviewFile,
|
||||||
payload: {
|
payload: {
|
||||||
file,
|
file,
|
||||||
|
otherFiles: files,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user