Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

remove unneeded nesting

Abhinavaaf1a8d3b52e
diff --git a/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx b/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
index 5b158af162..3a35111641 100644
--- a/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
+++ b/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx
@@ -53,22 +53,20 @@ export default function CollectionInfoWithOptions({
};
return (
- <>
- <CollectionInfoBarWrapper>
- <SpaceBetweenFlex>
- <CollectionInfo
- name={name}
- fileCount={fileCount}
- endIcon={<EndIcon type={type} />}
+ <CollectionInfoBarWrapper>
+ <SpaceBetweenFlex>
+ <CollectionInfo
+ name={name}
+ fileCount={fileCount}
+ endIcon={<EndIcon type={type} />}
+ />
+ {shouldShowOptions(type) && (
+ <CollectionOptions
+ {...props}
+ collectionSummaryType={type}
/>
- {shouldShowOptions(type) && (
- <CollectionOptions
- {...props}
- collectionSummaryType={type}
- />
- )}
- </SpaceBetweenFlex>
- </CollectionInfoBarWrapper>
- </>
+ )}
+ </SpaceBetweenFlex>
+ </CollectionInfoBarWrapper>
);
}