add CollectionSummaryType type hidden

This commit is contained in:
Abhinav 2023-05-11 11:47:50 +05:30
parent f030d94a0f
commit 923bc858e4
2 changed files with 7 additions and 0 deletions

View file

@ -269,6 +269,11 @@ const SelectedFileOptions = ({
</IconButton>
</Tooltip>
)}
<Tooltip title={t('HIDE')}>
<IconButton onClick={hideFilesHelper}>
<VisibilityOffOutlined />
</IconButton>
</Tooltip>
{activeCollection !== ALL_SECTION &&
activeCollection !== ARCHIVE_SECTION &&
!isFavoriteCollection && (

View file

@ -1002,6 +1002,8 @@ export async function getCollectionSummaries(
? CollectionSummaryType.sharedOnlyViaLink
: IsArchived(collection)
? CollectionSummaryType.archived
: isCollectionHidden(collection)
? CollectionSummaryType.hidden
: CollectionSummaryType[collection.type],
});
}