Merge branch 'main' into ffmpeg-static-integration

This commit is contained in:
Abhinav 2022-11-14 18:49:38 +05:30
commit 19bc1b3c9b
5 changed files with 21 additions and 4 deletions

View file

@ -249,6 +249,8 @@ export function PhotoList({
publicCollectionGalleryContext.accessedThroughSharedURL,
galleryContext.photoListHeader,
publicCollectionGalleryContext.photoListHeader,
deduplicateContext.isOnDeduplicatePage,
deduplicateContext.fileSizeMap,
]);
const groupByFileSize = (timeStampList: TimeStampListItem[]) => {

View file

@ -70,7 +70,7 @@ export function RenderCaption({
<FreeFlowText>{caption}</FreeFlowText>
) : (
<Typography color="text.secondary">
Add a caption
{constants.CAPTION_PLACEHOLDER}
</Typography>
)}
</Value>

View file

@ -24,6 +24,8 @@ import router from 'next/router';
import { getKey, SESSION_KEYS } from 'utils/storage/sessionStorage';
import { styled } from '@mui/material';
import { syncCollections } from 'services/collectionService';
import EnteSpinner from 'components/EnteSpinner';
import VerticallyCentered from 'components/Container';
export const DeduplicateContext = createContext<DeduplicateContextType>(
DefaultDeduplicateContext
@ -143,8 +145,14 @@ export default function Deduplicate() {
setSelected({ count: 0, collectionID: 0 });
};
if (!duplicateFiles) {
return <></>;
if (!duplicateFiles?.length) {
return (
<VerticallyCentered>
<EnteSpinner>
<span className="sr-only">Loading...</span>
</EnteSpinner>
</VerticallyCentered>
);
}
return (

View file

@ -87,6 +87,12 @@ declare module '@mui/material/Alert' {
}
}
declare module '@mui/material/CircularProgress' {
export interface CircularProgressPropsColorOverrides {
accent: true;
}
}
// Create a theme instance.
const darkThemeOptions = createTheme({
components: {

View file

@ -435,7 +435,8 @@ const englishConstants = {
INFO: 'Info',
FILE_ID: 'File ID',
FILE_NAME: 'File name',
CAPTION: 'Caption',
CAPTION: 'Description',
CAPTION_PLACEHOLDER: 'Add a description',
CREATION_TIME: 'Creation time',
UPDATED_ON: 'Updated on',
LOCATION: 'Location',