made some naming changes in components related to album header

This commit is contained in:
Ananddubey01 2023-01-20 17:11:59 +05:30
parent 99f423bfce
commit 878b43a6bd
3 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ export function QuickOptions({
collectionSummaryType ===
CollectionSummaryType.favorites
? constants.DOWNLOAD_FAVOURITES
: constants.CONFIRM_DOWNLOAD_COLLECTION
: constants.DOWNLOAD_COLLECTION
}>
<IconButton>
<FileDownloadOutlinedIcon

View file

@ -20,7 +20,7 @@ import { TrashCollectionOption } from './TrashCollectionOption';
import { SharedCollectionOption } from './SharedCollectionOption';
import { QuickOptions } from './QuickOptions';
import MoreHoriz from '@mui/icons-material/MoreHoriz';
import { Box } from '@mui/system';
import { HorizontalFlex } from 'components/Container';
interface CollectionOptionsProps {
setCollectionNamerAttributes: SetCollectionNamerAttributes;
@ -190,7 +190,7 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
const confirmDownloadCollection = () => {
setDialogMessage({
title: constants.CONFIRM_DOWNLOAD_COLLECTION,
title: constants.DOWNLOAD_COLLECTION,
content: constants.DOWNLOAD_COLLECTION_MESSAGE(),
proceed: {
text: constants.DOWNLOAD,
@ -234,7 +234,7 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
};
return (
<Box sx={{ display: 'inline-flex', gap: '16px' }}>
<HorizontalFlex sx={{ display: 'inline-flex', gap: '16px' }}>
<QuickOptions
handleCollectionAction={handleCollectionAction}
collectionSummaryType={collectionSummaryType}
@ -265,7 +265,7 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
)}
</OverflowMenu>
)}
</Box>
</HorizontalFlex>
);
};

View file

@ -380,7 +380,7 @@ const englishConstants = {
`Oops, you're already sharing this with ${email}`,
SHARING_BAD_REQUEST_ERROR: 'Sharing album not allowed',
SHARING_DISABLED_FOR_FREE_ACCOUNTS: 'Sharing is disabled for free accounts',
CONFIRM_DOWNLOAD_COLLECTION: 'Download album',
DOWNLOAD_COLLECTION: 'Download album',
DOWNLOAD_COLLECTION_MESSAGE: () => (
<>
<p>Are you sure you want to download the complete album?</p>