feat(cloud): Apps-style tabs, categories and federated file search #84
@ -436,8 +436,9 @@ function categoryOf(nameOrMime: string): Exclude<CategoryId, 'all'> {
|
||||
return 'documents'
|
||||
}
|
||||
|
||||
const FALLBACK_SECTION: ContentSection = contentSections[2]!
|
||||
function categoryMeta(cat: Exclude<CategoryId, 'all'>): ContentSection {
|
||||
return contentSections.find(s => s.id === cat) ?? contentSections[2]
|
||||
return contentSections.find(s => s.id === cat) ?? FALLBACK_SECTION
|
||||
}
|
||||
|
||||
function formatSize(bytes: number): string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user