add img preview + fix navbar
This commit is contained in:
@@ -17,6 +17,8 @@ export const getPreviewType = (document) => {
|
||||
|
||||
export const canPreviewDocument = (document = {}) => !!getPreviewType(document)
|
||||
|
||||
export const isImageDocument = (document = {}) => getPreviewType(document) === 'image'
|
||||
|
||||
export const describeDocument = (document) => {
|
||||
if (!document) { return '' }
|
||||
const name = document.filename || document.name || ''
|
||||
|
||||
Reference in New Issue
Block a user