remove unneeded nesting

This commit is contained in:
Abhinav 2024-01-30 05:22:08 +05:30
parent 0435fbc47c
commit aaf1a8d3b5

View file

@ -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>
);
}