π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
npx @mui/codemod@latest v6.0.0/system-props photo/src then cleanup
Manav Rathie210b22efd9e
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsxindex 88e3088b38..ba5cc736b7 100644--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx@@ -139,7 +139,7 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({<Stack sx={{ py: 1, gap: 4 }}>{browserCanCast && (<Stack sx={{ gap: 2 }}>- <Typography color={"text.muted"}>+ <Typography sx={{ color: "text.muted" }}>{t("cast_auto_pair_description")}</Typography>@@ -149,7 +149,7 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({</Stack>)}<Stack sx={{ gap: 2 }}>- <Typography color="text.muted">+ <Typography sx={{ color: "text.muted" }}>{t("pair_with_pin_description")}</Typography><Button onClick={() => setView("pin")}>diff --git a/web/apps/photos/src/components/Collections/AllCollections/content.tsx b/web/apps/photos/src/components/Collections/AllCollections/content.tsxindex 019c52065b..d06df025cd 100644--- a/web/apps/photos/src/components/Collections/AllCollections/content.tsx+++ b/web/apps/photos/src/components/Collections/AllCollections/content.tsx@@ -173,7 +173,7 @@ const CollectionButton: React.FC<AllCollectionCardProps> = ({><LargeTileTextOverlay><Typography>{collectionSummary.name}</Typography>- <Typography variant="small" color="text.muted">+ <Typography variant="small" sx={{ color: "text.muted" }}>{t("photos_count", { count: collectionSummary.fileCount })}</Typography></LargeTileTextOverlay>diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsxindex 09b59aaa6b..0626047df7 100644--- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx+++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx@@ -113,8 +113,7 @@ const AllCollectionsHeader = ({</Typography><Typographyvariant="small"- fontWeight={"normal"}- color={"text.muted"}+ sx={{ fontWeight: "normal", color: "text.muted" }}>{t("albums_count", { count: collectionCount })}</Typography>diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 125966a7ec..3fb05806fa 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -196,7 +196,12 @@ const CollectionOptions: React.FC<CollectionOptionsProps> = ({<Transi18nKey={"delete_album_message"}components={{- a: <Box component={"span"} color="text.base" />,+ a: (+ <Box+ component={"span"}+ sx={{ color: "text.base" }}+ />+ ),}}/>),diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 95c1301452..dd30db4474 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -104,7 +104,7 @@ export const CollectionShare: React.FC<CollectionShareProps> = ({},}}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={props.onClose}title={@@ -116,7 +116,7 @@ export const CollectionShare: React.FC<CollectionShareProps> = ({onRootClose={handleRootClose}caption={props.collection.name}/>- <Stack py={"20px"} px={"8px"} gap={"24px"}>+ <Stack sx={{ py: "20px", px: "8px", gap: "24px" }}>{type == "incomingShareCollaborator" ||type == "incomingShareViewer" ? (<SharingDetails@@ -301,11 +301,11 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({</MenuItemGroup>{sharableLinkError && (<Typography- textAlign={"center"}variant="small"sx={(theme) => ({color: theme.colors.danger.A700,mt: 0.5,+ textAlign: "center",})}>{sharableLinkError}@@ -544,7 +544,7 @@ const AddParticipant: React.FC<AddParticipantProps> = ({return (<SidebarDrawer anchor="right" open={open} onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={onClose}title={@@ -663,7 +663,7 @@ const AddParticipantForm: React.FC<AddParticipantFormProps> = (props) => {setFieldValue,}) => (<form noValidate onSubmit={handleSubmit}>- <Stack spacing={"24px"} py={"20px"} px={"12px"}>+ <Stack sx={{ gap: "24px", py: "20px", px: "12px" }}>{props.hiddenPreInput}<Stack><MenuSectionTitle title={t("ADD_NEW_EMAIL")} />@@ -765,7 +765,7 @@ const AddParticipantForm: React.FC<AddParticipantFormProps> = (props) => {justifyContent={"center"}flexWrap={props.blockButton ? "wrap-reverse" : "nowrap"}>- <Stack direction={"column"} px={"8px"} width={"100%"}>+ <Stack sx={{ px: "8px", width: "100%" }}>{props.secondaryButtonAction && (<FocusVisibleButtononClick={props.secondaryButtonAction}@@ -899,7 +899,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({open={open}onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={onClose}title={collection.name}@@ -908,7 +908,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({count: peopleCount,})}/>- <Stack py={"20px"} px={"12px"} spacing={"24px"}>+ <Stack sx={{ gap: "24px", py: "20px", px: "12px" }}><Stack><MenuSectionTitletitle={t("OWNER")}@@ -1119,7 +1119,7 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({return (<SidebarDrawer anchor="right" open={open} onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={onClose}title={t("MANAGE")}@@ -1127,12 +1127,11 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({caption={selectedParticipant.email}/>- <Stack py={"20px"} px={"8px"} spacing={"32px"}>+ <Stack sx={{ gap: "32px", py: "20px", px: "8px" }}><Stack><Typography- color="text.muted"variant="small"- padding={1}+ sx={{ color: "text.muted", padding: 1 }}>{t("ADDED_AS")}</Typography>@@ -1164,18 +1163,16 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({</MenuItemGroup><Typography- color="text.muted"variant="small"- padding={1}+ sx={{ color: "text.muted", padding: 1 }}>{t("COLLABORATOR_RIGHTS")}</Typography>- <Stack py={"30px"}>+ <Stack sx={{ py: "30px" }}><Typography- color="text.muted"variant="small"- padding={1}+ sx={{ color: "text.muted", padding: 1 }}>{t("REMOVE_PARTICIPANT_HEAD")}</Typography>@@ -1283,7 +1280,10 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({return (<><Stack>- <Typography color="text.muted" variant="small" padding={1}>+ <Typography+ variant="small"+ sx={{ color: "text.muted", padding: 1 }}+ ><PublicIcon style={{ fontSize: 17, marginRight: 8 }} />{t("PUBLIC_LINK_ENABLED")}</Typography>@@ -1393,13 +1393,13 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({};return (<SidebarDrawer anchor="right" open={open} onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={onClose}title={t("share_album")}onRootClose={onRootClose}/>- <Stack py={"20px"} px={"8px"} spacing={"32px"}>+ <Stack sx={{ gap: "32px", py: "20px", px: "8px" }}><Stack spacing={3}><ManagePublicCollectcollection={collection}@@ -1460,11 +1460,11 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({</Stack>{sharableLinkError && (<Typography- textAlign={"center"}variant="small"sx={(theme) => ({color: theme.colors.danger.A700,mt: 0.5,+ textAlign: "center",})}>{sharableLinkError}@@ -1583,13 +1583,13 @@ const ManageLinkExpiry: React.FC<ManageLinkExpiryProps> = ({open={shareExpiryOptionsModalView}onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={closeShareExpiryOptionsModalView}title={t("LINK_EXPIRY")}onRootClose={onRootClose}/>- <Stack py={"20px"} px={"8px"} spacing={"32px"}>+ <Stack sx={{ gap: "32px", py: "20px", px: "8px" }}><MenuItemGroup>{shareExpireOption.map((item, index) => (<>@@ -1699,19 +1699,18 @@ const ManageDeviceLimit: React.FC<ManageDeviceLimitProps> = ({onClick={openDeviceLimitChangeModalView}endIcon={<ChevronRightIcon />}/>-<SidebarDraweranchor="right"open={isChangeDeviceLimitVisible}onClose={handleDrawerClose}>- <Stack spacing={"4px"} py={"12px"}>+ <Stack sx={{ gap: "4px", py: "12px" }}><TitlebaronClose={closeDeviceLimitChangeModal}title={t("LINK_DEVICE_LIMIT")}onRootClose={onRootClose}/>- <Stack py={"20px"} px={"8px"} spacing={"32px"}>+ <Stack sx={{ gap: "32px", py: "20px", px: "8px" }}><MenuItemGroup>{deviceLimitOptions.map((item, index) => (<>@@ -1891,8 +1890,11 @@ function PublicLinkSetPassword({maxWidth={"sm"}fullWidth>- <Stack spacing={3} p={1.5}>- <Typography variant="h3" fontWeight={"bold"} px={1} py={0.5}>+ <Stack sx={{ gap: 3, p: 1.5 }}>+ <Typography+ variant="h3"+ sx={{ fontWeight: "bold", px: 1, py: 0.5 }}+ >{t("password_lock")}</Typography><SingleInputFormdiff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsxindex 3af2eb1c26..08fbffc123 100644--- a/web/apps/photos/src/components/DeleteAccountModal.tsx+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx@@ -155,7 +155,7 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {)}selected={values.reason}setSelected={handleChange("reason")}- messageProps={{ color: "critical.main" }}+ messageSxProps={{ color: "critical.main" }}message={errors.reason}/><MultilineInput@@ -166,7 +166,7 @@ const DeleteAccountModal = ({ open, onClose }: Iprops) => {value={values.feedback}onChange={handleChange("feedback")}message={errors.feedback}- messageProps={{ color: "critical.main" }}+ messageSxProps={{ color: "critical.main" }}rowCount={3}/><CheckboxInput@@ -227,7 +227,7 @@ interface MultilineInputProps {label: string;labelProps?: TypographyProps;message?: string;- messageProps?: TypographyProps;+ messageSxProps?: TypographyProps["sx"];placeholder?: string;value: string;rowCount: number;@@ -236,9 +236,8 @@ interface MultilineInputProps {function MultilineInput({label,- labelProps,message,- messageProps,+ messageSxProps,placeholder,value,rowCount,@@ -246,7 +245,7 @@ function MultilineInput({}: MultilineInputProps) {return (<Stack spacing={"4px"}>- <Typography {...labelProps}>{label}</Typography>+ <Typography>{label}</Typography><TextFieldvariant="standard"multiline@@ -267,10 +266,12 @@ function MultilineInput({})}/><Typography- px={"8px"}variant="small"- color="text.secondary"- {...messageProps}+ sx={{+ px: "8px",+ color: "text.secondary",+ ...(messageSxProps ?? {}),+ }}>{message}</Typography>@@ -283,7 +284,6 @@ interface CheckboxInputProps {checked: boolean;onChange: (value: boolean) => void;label: string;- labelProps?: TypographyProps;}function CheckboxInput({@@ -291,7 +291,6 @@ function CheckboxInput({checked,onChange,label,- labelProps,}: CheckboxInputProps) {return (<FormGroup sx={{ width: "100%" }}>@@ -306,7 +305,7 @@ function CheckboxInput({/>}label={- <Typography color="text.secondary" {...labelProps}>+ <Typography sx={{ color: "text.secondary" }}>{label}</Typography>}diff --git a/web/apps/photos/src/components/DropdownInput.tsx b/web/apps/photos/src/components/DropdownInput.tsxindex 16154e484f..34527ebcaa 100644--- a/web/apps/photos/src/components/DropdownInput.tsx+++ b/web/apps/photos/src/components/DropdownInput.tsx@@ -16,10 +16,10 @@ export interface DropdownOption<T> {interface Iprops<T> {label: string;- labelProps?: TypographyProps;+ labelSxProps?: TypographyProps["sx"];options: DropdownOption<T>[];message?: string;- messageProps?: TypographyProps;+ messageSxProps?: TypographyProps["sx"];selected: T;setSelected: (selectedValue: T) => void;placeholder?: string;@@ -27,17 +27,17 @@ interface Iprops<T> {export default function DropdownInput<T extends string>({label,- labelProps,+ labelSxProps,options,message,selected,placeholder,setSelected,- messageProps,+ messageSxProps,}: Iprops<T>) {return (<Stack spacing={"4px"}>- <Typography {...labelProps}>{label}</Typography>+ <Typography sx={labelSxProps ?? {}}>{label}</Typography><SelectIconComponent={ExpandMoreIcon}displayEmpty@@ -87,7 +87,9 @@ export default function DropdownInput<T extends string>({})}renderValue={(selected) => {return !selected?.length ? (- <Box color={"text.muted"}>{placeholder ?? ""}</Box>+ <Box sx={{ color: "text.muted" }}>+ {placeholder ?? ""}+ </Box>) : (options.find((o) => o.value === selected).label);@@ -115,9 +117,11 @@ export default function DropdownInput<T extends string>({{message && (<Typographyvariant="small"- px={"8px"}- color={"text.muted"}- {...messageProps}+ sx={{+ px: "8px",+ color: "text.muted",+ ...(messageSxProps ?? {}),+ }}>{message}</Typography>diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsxindex 87cb3f2cca..f46fa3bd4c 100644--- a/web/apps/photos/src/components/Export.tsx+++ b/web/apps/photos/src/components/Export.tsx@@ -213,7 +213,7 @@ export const Export: React.FC<ExportProps> = ({function ExportDirectory({ exportFolder, changeExportDirectory, exportStage }) {return (<SpaceBetweenFlex minHeight={"48px"}>- <Typography color="text.muted" mr={"16px"}>+ <Typography sx={{ color: "text.muted", mr: "16px" }}>{t("destination")}</Typography><>@@ -279,7 +279,9 @@ const ChangeDirectoryOption: React.FC<ButtonishProps> = ({ onClick }) => (function ContinuousExport({ continuousExport, toggleContinuousExport }) {return (<SpaceBetweenFlex minHeight={"48px"}>- <Typography color="text.muted">{t("CONTINUOUS_EXPORT")}</Typography>+ <Typography sx={{ color: "text.muted" }}>+ {t("CONTINUOUS_EXPORT")}+ </Typography><Box><EnteSwitchcolor="accent"diff --git a/web/apps/photos/src/components/ExportFinished.tsx b/web/apps/photos/src/components/ExportFinished.tsxindex 764527aa1e..7ffef9d036 100644--- a/web/apps/photos/src/components/ExportFinished.tsx+++ b/web/apps/photos/src/components/ExportFinished.tsx@@ -37,9 +37,9 @@ export default function ExportFinished(props: Props) {return (<><DialogContent>- <Stack pr={2}>+ <Stack sx={{ pr: 2 }}><SpaceBetweenFlex minHeight={"48px"}>- <Typography color={"text.muted"}>+ <Typography sx={{ color: "text.muted" }}>{t("PENDING_ITEMS")}</Typography>{props.pendingExports.length ? (@@ -53,7 +53,7 @@ export default function ExportFinished(props: Props) {)}</SpaceBetweenFlex><SpaceBetweenFlex minHeight={"48px"}>- <Typography color="text.muted">+ <Typography sx={{ color: "text.muted" }}>{t("last_export_time")}</Typography><Typography>diff --git a/web/apps/photos/src/components/ExportInProgress.tsx b/web/apps/photos/src/components/ExportInProgress.tsxindex b812f27a55..e1fbe5379d 100644--- a/web/apps/photos/src/components/ExportInProgress.tsx+++ b/web/apps/photos/src/components/ExportInProgress.tsx@@ -41,7 +41,7 @@ export default function ExportInProgress(props: Props) {<><DialogContent><VerticallyCentered>- <Box mb={1.5}>+ <Box sx={{ mb: 1.5 }}>{props.exportStage === ExportStage.STARTING ? (t("EXPORT_STARTING")) : props.exportStage === ExportStage.MIGRATION ? (diff --git a/web/apps/photos/src/components/GalleryEmptyState.tsx b/web/apps/photos/src/components/GalleryEmptyState.tsxindex 24ed5c66d2..0a8ad91730 100644--- a/web/apps/photos/src/components/GalleryEmptyState.tsx+++ b/web/apps/photos/src/components/GalleryEmptyState.tsx@@ -17,10 +17,11 @@ export default function GalleryEmptyState({ openUploader }) {<VerticallyCentered sx={{ flex: "none" }}><Typographyvariant="h3"- color="text.muted"sx={{+ color: "text.muted",userSelect: "none",marginBlockEnd: 1,+svg: {color: "text.base",verticalAlign: "middle",@@ -42,10 +43,8 @@ export default function GalleryEmptyState({ openUploader }) {height={287.57}alt=""src="/images/empty-state/ente_duck.png"- srcSet="/images/empty-state/[email protected],- /images/empty-state/[email protected]"+ srcSet="/images/empty-state/[email protected], /images/empty-state/[email protected]"/>-<VerticallyCentered paddingTop={1.5} paddingBottom={1.5}><Buttonstyle={{diff --git a/web/apps/photos/src/components/ItemList.tsx b/web/apps/photos/src/components/ItemList.tsxindex 70c0526013..99d1dbcccf 100644--- a/web/apps/photos/src/components/ItemList.tsx+++ b/web/apps/photos/src/components/ItemList.tsx@@ -80,7 +80,7 @@ export default function ItemList<T>(props: ItemListProps<T>) {};return (- <Box pl={2}>+ <Box sx={{ pl: 2 }}><ListitemData={itemData}height={Math.min(diff --git a/web/apps/photos/src/components/Notification.tsx b/web/apps/photos/src/components/Notification.tsxindex 67aca7c16f..ae0d9dd685 100644--- a/web/apps/photos/src/components/Notification.tsx+++ b/web/apps/photos/src/components/Notification.tsx@@ -67,11 +67,9 @@ export default function Notification({})}><Stack- flex={"1"}spacing={2}direction="row"- alignItems={"center"}- width={"100%"}+ sx={{ flex: "1", alignItems: "center", width: "100%" }}><Box sx={{ svg: { fontSize: "36px" } }}>{attributes.startIcon ?? <InfoIcon />}@@ -80,11 +78,13 @@ export default function Notification({<Stackdirection={"column"}spacing={0.5}- flex={1}- textAlign="left"- // This is necessary to trigger the ellipsizing of the- // text in children.- overflow="hidden"+ sx={{+ flex: 1,+ textAlign: "left",+ // This is necessary to trigger the ellipsizing of the+ // text in children.+ overflow: "hidden",+ }}>{attributes.subtext && (<EllipsizedTypography variant="small">diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsxindex 6a9f5fd6de..5114d11bf7 100644--- a/web/apps/photos/src/components/PhotoList/index.tsx+++ b/web/apps/photos/src/components/PhotoList/index.tsx@@ -586,14 +586,17 @@ export function PhotoList({>{/* Make the entire area tappable, otherwise it is hard toget at on mobile devices. */}- <Box width={"100%"}>+ <Box sx={{ width: "100%" }}><Linkcolor="text.base"sx={{ "&:hover": { color: "inherit" } }}target="_blank"href={"https://ente.io"}>- <Typography variant="small" display={"block"}>+ <Typography+ variant="small"+ sx={{ display: "block" }}+ >{t("SHARED_USING")}{" "}<Link target="_blank" href={"https://ente.io"}>ente.io@@ -603,10 +606,7 @@ export function PhotoList({{publicCollectionGalleryContext.referralCode ? (<FullStretchContainer><Typography- sx={{- marginTop: "12px",- padding: "8px",- }}+ sx={{ marginTop: "12px", padding: "8px" }}><Transi18nKey={"SHARING_REFERRAL_CODE"}diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsxindex ad72ae9851..b295e88f09 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx@@ -198,7 +198,13 @@ export const FileInfo: React.FC<FileInfoProps> = ({return (<FileInfoSidebar open={showInfo} onClose={handleCloseInfo}><Titlebar onClose={handleCloseInfo} title={t("info")} backIsClose />- <Stack pt={1} pb={3} spacing={"20px"}>+ <Stack+ spacing={"20px"}+ sx={{+ pt: 1,+ pb: 3,+ }}+ ><RenderCaption{...{file,@@ -315,11 +321,13 @@ export const FileInfo: React.FC<FileInfoProps> = ({{showCollectionChips && (<InfoItem icon={<FolderOutlinedIcon />}><Box- display={"flex"}- gap={1}- flexWrap="wrap"- justifyContent={"flex-start"}- alignItems={"flex-start"}+ sx={{+ display: "flex",+ gap: 1,+ flexWrap: "wrap",+ justifyContent: "flex-start",+ alignItems: "flex-start",+ }}>{fileToCollectionsMap?.get(file.id)@@ -340,7 +348,6 @@ export const FileInfo: React.FC<FileInfoProps> = ({</InfoItem>)}</Stack>-<RawExif{...rawExifVisibilityProps}onInfoClose={handleCloseInfo}@@ -460,10 +467,10 @@ const InfoItem: React.FC<React.PropsWithChildren<InfoItemProps>> = ({</Typography><Typographyvariant="small"- color="text.muted"{...(typeof caption == "string"? {}: { component: "div" })}+ sx={{ color: "text.muted" }}>{caption}</Typography>@@ -554,7 +561,7 @@ function RenderCaption({return <></>;}return (- <Box p={1}>+ <Box sx={{ p: 1 }}><Formik<RenderCaptionFormValues>initialValues={{ caption }}validationSchema={Yup.object().shape({@@ -981,22 +988,24 @@ const RawExif: React.FC<RawExifProps> = ({/>}/>- <Stack py={3} px={1} spacing={2}>+ <Stack sx={{ gap: 2, py: 3, px: 1 }}>{items.map(([key, namespace, tagName, description]) => (<ExifItem key={key}>- <Stack direction={"row"} gap={1}>- <Typography variant="small" color={"text.muted"}>+ <Stack direction="row" sx={{ gap: 1 }}>+ <Typography+ variant="small"+ sx={{ color: "text.muted" }}+ >{tagName}</Typography>- <Typography variant="tiny" color={"text.faint"}>+ <Typography+ variant="tiny"+ sx={{ color: "text.faint" }}+ >{namespace}</Typography></Stack>- <EllipsizedTypography- sx={{- width: "100%",- }}- >+ <EllipsizedTypography sx={{ width: "100%" }}>{description}</EllipsizedTypography></ExifItem>diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsxindex d59dc48b34..63321895be 100644--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx@@ -531,12 +531,18 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (}}open>- <Box padding="1rem" width="100%" height="100%">+ <Box+ sx={{+ padding: "1rem",+ width: "100%",+ height: "100%",+ }}+ ><HorizontalFlexjustifyContent={"space-between"}alignItems={"center"}>- <Typography variant="h2" fontWeight="bold">+ <Typography variant="h2" sx={{ fontWeight: "bold" }}>{t("photo_editor")}</Typography><IconButton@@ -548,17 +554,19 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (</IconButton></HorizontalFlex><Box- width="100%"- height="100%"- overflow="hidden"- boxSizing={"border-box"}- display="flex"- alignItems="center"- justifyContent="center"- position="relative"onMouseUp={handleDragEnd}onMouseMove={isDragging ? handleDrag : null}onMouseDown={handleDragStart}+ sx={{+ width: "100%",+ height: "100%",+ overflow: "hidden",+ boxSizing: "border-box",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ position: "relative",+ }}><Boxstyle={{@@ -568,13 +576,15 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (}}><Box- height="88%"- width="100%"ref={parentRef}- display="flex"- alignItems="center"- justifyContent="center"- position="relative"+ sx={{+ height: "88%",+ width: "100%",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ position: "relative",+ }}>{(fileURL === null || canvasLoading) && (<CircularProgress />@@ -1350,7 +1360,7 @@ interface ColoursMenuProps {const ColoursMenu: React.FC<ColoursMenuProps> = (props) => (<>- <Box px={"8px"}>+ <Box sx={{ px: "8px" }}><MenuSectionTitle title={t("brightness")} /><Slidermin={0}diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsxindex d0d080b26a..3295865b17 100644--- a/web/apps/photos/src/components/PhotoViewer/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx@@ -1009,7 +1009,7 @@ const CircularProgressWithLabel: React.FC<<Typographyvariant="mini"component="div"- color="text.secondary"+ sx={{ color: "text.secondary" }}>{`${Math.round(value)}%`}</Typography></Overlay></>diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsxindex 4c687e1556..409aeb0fd0 100644--- a/web/apps/photos/src/components/Sidebar/Preferences.tsx+++ b/web/apps/photos/src/components/Sidebar/Preferences.tsx@@ -120,7 +120,7 @@ const LanguageSelector = () => {<DropdownInputoptions={options}label={t("language")}- labelProps={{ color: "text.muted" }}+ labelSxProps={{ color: "text.muted" }}selected={locale}setSelected={updateCurrentLocale}/>diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsxindex 48876761e2..6ab1965029 100644--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx@@ -42,7 +42,7 @@ export const SubscriptionCard: React.FC<SubscriptionCardProps> = ({}return (- <Box position="relative">+ <Box sx={{ position: "relative" }}><BackgroundOverlay /><SubscriptionCardContentOverlay userDetails={userDetails} /><ClickOverlay onClick={onClick} />@@ -144,14 +144,17 @@ interface StorageSectionProps {const StorageSection: React.FC<StorageSectionProps> = ({ usage, storage }) => {return (- <Box width="100%">- <Typography variant="small" color={"text.muted"}>+ <Box sx={{ width: "100%" }}>+ <Typography variant="small" sx={{ color: "text.muted" }}>{t("storage")}</Typography><DefaultBox><Typography- fontWeight={"bold"}- sx={{ fontSize: "24px", lineHeight: "30px" }}+ sx={{+ fontWeight: "bold",+ fontSize: "24px",+ lineHeight: "30px",+ }}>{`${formattedStorageByteSize(usage, { round: true })} ${t("of",@@ -160,8 +163,11 @@ const StorageSection: React.FC<StorageSectionProps> = ({ usage, storage }) => {</DefaultBox><MobileSmallBox><Typography- fontWeight={"bold"}- sx={{ fontSize: "24px", lineHeight: "30px" }}+ sx={{+ fontWeight: "bold",+ fontSize: "24px",+ lineHeight: "30px",+ }}>{`${bytesInGB(usage)} / ${bytesInGB(storage)} ${t("storage_unit.gb")} ${t("used")}`}</Typography>@@ -193,17 +199,13 @@ const IndividualUsageSection: React.FC<IndividualUsageSectionProps> = ({// all such pluralizable strings use the _count suffix, but that's not a// requirement from the library).return (- <Box width="100%">+ <Box sx={{ width: "100%" }}><UsageBar used={usage} total={storage} />- <SpaceBetweenFlex- sx={{- marginTop: 1.5,- }}- >+ <SpaceBetweenFlex sx={{ marginTop: 1.5 }}><Typography variant="mini">{`${formattedStorageByteSize(storage - usage,)} ${t("free")}`}</Typography>- <Typography variant="mini" fontWeight={"bold"}>+ <Typography variant="mini" sx={{ fontWeight: "bold" }}>{t("photos_count", { count: fileCount ?? 0 })}</Typography></SpaceBetweenFlex>@@ -249,22 +251,18 @@ const FamilyUsageSection: React.FC<FamilyUsageSectionProps> = ({totalStorage,}) => {return (- <Box width="100%">+ <Box sx={{ width: "100%" }}><FamilyUsageBartotalUsage={totalUsage}userUsage={userUsage}totalStorage={totalStorage}/>- <SpaceBetweenFlex- sx={{- marginTop: 1.5,- }}- >+ <SpaceBetweenFlex sx={{ marginTop: 1.5 }}><Stack direction={"row"} spacing={1.5}><Legend label={t("you")} color="text.base" /><Legend label={t("family")} color="text.muted" /></Stack>- <Typography variant="mini" fontWeight={"bold"}>+ <Typography variant="mini" sx={{ fontWeight: "bold" }}>{t("photos_count", { count: fileCount ?? 0 })}</Typography></SpaceBetweenFlex>@@ -334,7 +332,7 @@ interface LegendProps {const Legend: React.FC<LegendProps> = ({ label, color }) => (<Box sx={{ display: "flex", alignItems: "center" }}><LegendDot sx={{ color }} />- <Typography variant="mini" fontWeight={"bold"}>+ <Typography variant="mini" sx={{ fontWeight: "bold" }}>{label}</Typography></Box>diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex 12131fad0f..fc5d8bbaa9 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -106,7 +106,7 @@ export default function Sidebar({<HeaderSection closeSidebar={closeSidebar} /><Divider /><UserDetailsSection sidebarView={sidebarView} />- <Stack spacing={0.5} mb={3}>+ <Stack sx={{ gap: 0.5, mb: 3 }}><ShortcutSectioncloseSidebar={closeSidebar}collectionSummaries={collectionSummaries}@@ -197,8 +197,8 @@ const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({return (<>- <Box px={0.5} mt={2} pb={1.5} mb={1}>- <Typography px={1} pb={1} color="text.muted">+ <Box sx={{ px: 0.5, mt: 2, pb: 1.5, mb: 1 }}>+ <Typography sx={{ px: 1, pb: 1, color: "text.muted" }}>{userDetails ? (userDetails.email) : (@@ -311,12 +311,14 @@ const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({if (!message) return <></>;return (- <Box px={1} pt={0.5}>+ <Box sx={{ px: 1, pt: 0.5 }}><Typographyvariant="small"- color={"text.muted"}onClick={handleClick && handleClick}- sx={{ cursor: handleClick && "pointer" }}+ sx={{+ color: "text.muted",+ cursor: handleClick && "pointer",+ }}>{message}</Typography>@@ -347,10 +349,15 @@ function MemberSubscriptionManage({ open, userDetails, onClose }) {<Dialog {...{ open, onClose, fullScreen }} maxWidth="xs" fullWidth><SpaceBetweenFlex sx={{ p: "20px 8px 12px 16px" }}><Stack>- <Typography variant="h3" fontWeight={"bold"}>+ <Typography+ variant="h3"+ sx={{+ fontWeight: "bold",+ }}+ >{t("subscription")}</Typography>- <Typography color={"text.muted"}>+ <Typography sx={{ color: "text.muted" }}>{t("family_plan")}</Typography></Stack>@@ -358,8 +365,8 @@ function MemberSubscriptionManage({ open, userDetails, onClose }) {</SpaceBetweenFlex><DialogContent><VerticallyCentered>- <Box mb={4}>- <Typography color="text.muted">+ <Box sx={{ mb: 4 }}>+ <Typography sx={{ color: "text.muted" }}>{t("subscription_info_family")}</Typography><Typography>@@ -370,8 +377,7 @@ function MemberSubscriptionManage({ open, userDetails, onClose }) {<imgheight={256}src="/images/family-plan/1x.png"- srcSet="/images/family-plan/2x.png 2x,- /images/family-plan/3x.png 3x"+ srcSet="/images/family-plan/2x.png 2x, /images/family-plan/3x.png 3x"/><FlexWrapper px={2}><Button@@ -752,7 +758,14 @@ const DebugSection: React.FC = () => {variant="mini"label={t("debug_logs")}/>- <Stack py={"14px"} px={"16px"} gap={"24px"} color="text.muted">+ <Stack+ sx={{+ py: "14px",+ px: "16px",+ gap: "24px",+ color: "text.muted",+ }}+ >{appVersion && (<Typography variant="mini">{appVersion}</Typography>)}diff --git a/web/apps/photos/src/components/Upload/UploadProgress.tsx b/web/apps/photos/src/components/Upload/UploadProgress.tsxindex 148180378a..51ba863e7a 100644--- a/web/apps/photos/src/components/Upload/UploadProgress.tsx+++ b/web/apps/photos/src/components/Upload/UploadProgress.tsx@@ -31,7 +31,6 @@ import {Typography,type AccordionProps,type DialogProps,- type TypographyProps,} from "@mui/material";import ItemList from "components/ItemList";import { t } from "i18next";@@ -182,9 +181,11 @@ function UploadProgressSubtitleText() {return (<Typographyvariant="body"- fontWeight={"normal"}- color="text.muted"- marginTop={"4px"}+ sx={{+ fontWeight: "normal",+ color: "text.muted",+ marginTop: "4px",+ }}>{subtitleText(uploadPhase, uploadCounter)}</Typography>@@ -440,8 +441,16 @@ const SectionAccordionDetails = styled(AccordionDetails)(({ theme }) => ({padding: theme.spacing(2),}));-const SectionInfo = (props: TypographyProps) => (- <Typography color="text.muted" variant="small" sx={{ mb: 1 }} {...props} />+const SectionInfo: React.FC<React.PropsWithChildren> = ({ children }) => (+ <Typography+ variant="small"+ sx={{+ color: "text.muted",+ mb: 1,+ }}+ >+ {children}+ </Typography>);const NotUploadSectionHeader = styled("div")(@@ -527,10 +536,10 @@ interface TitleTextProps {const TitleText: React.FC<TitleTextProps> = ({ title, count }) => (<VerticallyCenteredFlex gap={"4px"}><Typography>{title}</Typography>- <Typography variant="small" color="text.faint">+ <Typography variant="small" sx={{ color: "text.faint" }}>{"β’"}</Typography>- <Typography variant="small" color="text.faint">+ <Typography variant="small" sx={{ color: "text.faint" }}>{count ?? 0}</Typography></VerticallyCenteredFlex>diff --git a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsxindex 953455ec47..d6a785de66 100644--- a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx+++ b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx@@ -173,7 +173,6 @@ const DefaultOptions: React.FC<OptionsProps> = ({</DialogTitle><DialogCloseIconButton {...{ onClose }} /></SpaceBetweenFlex>-<Box sx={{ p: "12px", pt: "16px" }}><Stack spacing={0.5}>{intent != "import" && (@@ -200,8 +199,12 @@ const DefaultOptions: React.FC<OptionsProps> = ({)}</Stack><Typography- color="text.muted"- sx={{ p: "12px", pt: "24px", textAlign: "center" }}+ sx={{+ color: "text.muted",+ p: "12px",+ pt: "24px",+ textAlign: "center",+ }}>{t("drag_and_drop_hint")}</Typography>@@ -220,7 +223,6 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({<DialogTitle variant="h5">{t("google_takeout")}</DialogTitle><DialogCloseIconButton {...{ onClose }} /></SpaceBetweenFlex>-<Stack sx={{ padding: "18px 12px 20px 12px", gap: "16px" }}><Stack sx={{ gap: "8px" }}><FocusVisibleButton@@ -248,7 +250,7 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({</Link></Stack>- <Typography variant="small" color="text.muted">+ <Typography variant="small" sx={{ color: "text.muted" }}>{t("takeout_hint")}</Typography></Stack>diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsxindex b1e2a3513d..bf23abf7a7 100644--- a/web/apps/photos/src/components/WatchFolder.tsx+++ b/web/apps/photos/src/components/WatchFolder.tsx@@ -128,7 +128,7 @@ export const WatchFolder: React.FC<ModalVisibilityProps> = ({<DialogCloseIconButton {...{ onClose }} /></SpaceBetweenFlex><DialogContent sx={{ flex: 1 }}>- <Stack spacing={1} p={1.5} height={"100%"}>+ <Stack sx={{ gap: 1, p: 1.5, height: "100%" }}><WatchList {...{ watches, removeWatch }} /><Button fullWidth color="accent" onClick={addNewWatch}><span>+</span>@@ -185,19 +185,22 @@ const NoWatches: React.FC = () => {return (<NoWatchesContainer><Stack spacing={1}>- <Typography variant="large" fontWeight={"bold"}>+ <Typography variant="large" sx={{ fontWeight: "bold" }}>{t("no_folders_added")}</Typography>- <Typography py={0.5} variant={"small"} color="text.muted">+ <Typography+ variant={"small"}+ sx={{ py: 0.5, color: "text.muted" }}+ >{t("watch_folders_hint_1")}</Typography>- <Typography variant={"small"} color="text.muted">+ <Typography variant={"small"} sx={{ color: "text.muted" }}><FlexWrapper gap={1}><CheckmarkIcon />{t("watch_folders_hint_2")}</FlexWrapper></Typography>- <Typography variant={"small"} color="text.muted">+ <Typography variant={"small"} sx={{ color: "text.muted" }}><FlexWrapper gap={1}><CheckmarkIcon />{t("watch_folders_hint_3")}@@ -249,11 +252,7 @@ const WatchEntry: React.FC<WatchEntryProps> = ({ watch, removeWatch }) => {return (<SpaceBetweenFlex>- <HorizontalFlex- sx={{- overflow: "hidden",- }}- >+ <HorizontalFlex sx={{ overflow: "hidden" }}>{watch.collectionMapping === "root" ? (<Tooltip title={t("UPLOADED_TO_SINGLE_COLLECTION")}><FolderOpenIcon />diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsxindex 5bc9e7d15a..db5ad28ef5 100644--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx@@ -179,7 +179,7 @@ const SelectedFileOptions = ({<IconButton onClick={clearSelection}><CloseIcon /></IconButton>- <Box ml={1.5}>+ <Box sx={{ ml: 1.5 }}>{ownCount === count? t("selected_count", { selected: count }): t("selected_and_yours_count", {@@ -188,7 +188,7 @@ const SelectedFileOptions = ({})}</Box></FluidContainer>- <Stack spacing={2} direction="row" mr={2}>+ <Stack direction="row" sx={{ gap: 2, mr: 2 }}>{isInSearchMode ? (<><Tooltip title={t("fix_creation_time")}>diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 695d134319..e2c4b85955 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -885,7 +885,10 @@ export default function Gallery() {)}{isFirstLoad && (<CenteredFlex>- <Typography color="text.muted" variant="small">+ <Typography+ variant="small"+ sx={{ color: "text.muted" }}+ >{t("INITIAL_LOAD_DELAY_WARNING")}</Typography></CenteredFlex>diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsxindex 7f1024adad..c5a9d572da 100644--- a/web/apps/photos/src/pages/index.tsx+++ b/web/apps/photos/src/pages/index.tsx@@ -12,18 +12,11 @@ import localForage from "@ente/shared/storage/localForage";import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";import { getToken } from "@ente/shared/storage/localStorage/helpers";import { SESSION_KEYS, getKey } from "@ente/shared/storage/sessionStorage";-import {- Box,- Button,- Stack,- Typography,- styled,- type TypographyProps,-} from "@mui/material";+import { Box, Button, Stack, Typography, styled } from "@mui/material";import { t } from "i18next";import { useRouter } from "next/router";-import { useCallback, useEffect, useRef, useState } from "react";+import React, { useCallback, useEffect, useRef, useState } from "react";import { Trans } from "react-i18next";export default function LandingPage() {@@ -285,9 +278,9 @@ interface MobileBoxFooterProps {const MobileBoxFooter: React.FC<MobileBoxFooterProps> = ({ host }) => {return (- <Box pt={4} textAlign="center">+ <Box sx={{ pt: 4, textAlign: "center" }}>{host && (- <Typography variant="mini" color="text.faint">+ <Typography variant="mini" sx={{ color: "text.faint" }}>{host}</Typography>)}@@ -388,12 +381,16 @@ const Slide = styled(Stack)`text-align: center;`;-const SlideTitle = (props: TypographyProps) => (- <Typography variant="h3" mt={4} {...props} />+const SlideTitle: React.FC<React.PropsWithChildren> = ({ children }) => (+ <Typography variant="h3" sx={{ mt: 4 }}>+ {children}+ </Typography>);-const SlideDescription = (props: TypographyProps) => (- <Typography color={"text.muted"} mt={2} mb={3} {...props} />+const SlideDescription: React.FC<React.PropsWithChildren> = ({ children }) => (+ <Typography sx={{ color: "text.muted", mt: 2, mb: 3 }}>+ {children}+ </Typography>);const Img = styled("img")`diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 4821d7204a..56041ea737 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -461,7 +461,10 @@ export default function PublicCollectionGallery() {<VerticallyCentered><FormPaper><FormPaperTitle>{t("password")}</FormPaperTitle>- <Typography color={"text.muted"} mb={2} variant="small">+ <Typography+ variant="small"+ sx={{ color: "text.muted", mb: 2 }}+ >{t("link_password_description")}</Typography><SingleInputForm@@ -653,9 +656,11 @@ const SelectedFileOptions: React.FC<SelectedFileOptionsProps> = ({<IconButton onClick={clearSelection}><CloseIcon /></IconButton>- <Box ml={1.5}>{t("selected_count", { selected: count })}</Box>+ <Box sx={{ ml: 1.5 }}>+ {t("selected_count", { selected: count })}+ </Box></FluidContainer>- <Stack spacing={2} direction="row" mr={2}>+ <Stack direction="row" sx={{ gap: 2, mr: 2 }}><Tooltip title={t("download")}><IconButton onClick={downloadFilesHelper}><DownloadIcon />