Skip to content

armgit / ente

Public Imported from GitHub
0

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

Conv

Manav Rathi6dffb1f28916
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index 0040dd0b3b..397d10f421 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -15,7 +15,7 @@ import {
VerticallyCentered,
} from "@ente/shared/components/Container";
import { AUTH_PAGES as PAGES } from "@ente/shared/constants/pages";
-import LogoutOutlined from "@mui/icons-material/LogoutOutlined";
+import LogoutOutlinedIcon from "@mui/icons-material/LogoutOutlined";
import {
Button,
ButtonBase,
@@ -157,7 +157,7 @@ const AuthNavbar: React.FC = () => {
<OverflowMenu ariaID="auth-options">
<OverflowMenuOption
color="critical"
- startIcon={<LogoutOutlined />}
+ startIcon={<LogoutOutlinedIcon />}
onClick={logout}
>
{t("logout")}
diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsx
index 067dc8384e..e7395768d9 100644
--- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx
+++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx
@@ -4,7 +4,7 @@ import { SlideUpTransition } from "@/new/photos/components/mui/SlideUpTransition
import type { CollectionSummary } from "@/new/photos/services/collection/ui";
import { CollectionsSortBy } from "@/new/photos/services/collection/ui";
import { FlexWrapper, FluidContainer } from "@ente/shared/components/Container";
-import Close from "@mui/icons-material/Close";
+import CloseIcon from "@mui/icons-material/Close";
import {
Box,
DialogTitle,
@@ -103,7 +103,7 @@ const AllCollectionsHeader = ({
nestedInDialog
/>
<FilledIconButton onClick={onClose}>
- <Close />
+ <CloseIcon />
</FilledIconButton>
</Stack>
</FlexWrapper>
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 3a3fe8549c..125a5467d2 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -28,22 +28,22 @@ import {
} from "@/new/photos/services/magic-metadata";
import { useAppContext } from "@/new/photos/types/context";
import { HorizontalFlex } from "@ente/shared/components/Container";
-import ArchiveOutlined from "@mui/icons-material/ArchiveOutlined";
+import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import EditIcon from "@mui/icons-material/Edit";
-import Favorite from "@mui/icons-material/FavoriteRounded";
+import FavoriteRoundedIcon from "@mui/icons-material/FavoriteRounded";
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
import LinkIcon from "@mui/icons-material/Link";
import LogoutIcon from "@mui/icons-material/Logout";
-import MoreHoriz from "@mui/icons-material/MoreHoriz";
+import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import PeopleIcon from "@mui/icons-material/People";
import PushPinIcon from "@mui/icons-material/PushPin";
import PushPinOutlinedIcon from "@mui/icons-material/PushPinOutlined";
import SortIcon from "@mui/icons-material/Sort";
import TvIcon from "@mui/icons-material/Tv";
-import Unarchive from "@mui/icons-material/Unarchive";
-import VisibilityOffOutlined from "@mui/icons-material/VisibilityOffOutlined";
-import VisibilityOutlined from "@mui/icons-material/VisibilityOutlined";
+import UnarchiveIcon from "@mui/icons-material/Unarchive";
+import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
+import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
import { Box, IconButton, Menu, Stack, Tooltip } from "@mui/material";
import { SetCollectionNamerAttributes } from "components/Collections/CollectionNamer";
import { t } from "i18next";
@@ -89,9 +89,9 @@ export const CollectionHeader: React.FC<CollectionHeaderProps> = ({
const EndIcon = ({ type }: { type: CollectionSummaryType }) => {
switch (type) {
case "favorites":
- return <Favorite />;
+ return <FavoriteRoundedIcon />;
case "archived":
- return <ArchiveOutlined />;
+ return <ArchiveOutlinedIcon />;
case "incomingShareViewer":
case "incomingShareCollaborator":
return <PeopleIcon />;
@@ -330,7 +330,7 @@ const CollectionOptions: React.FC<CollectionOptionsProps> = ({
<OverflowMenu
ariaID="collection-options"
- triggerButtonIcon={<MoreHoriz ref={overFlowMenuIconRef} />}
+ triggerButtonIcon={<MoreHorizIcon ref={overFlowMenuIconRef} />}
>
{collectionSummaryType == "trash" ? (
<EmptyTrashOption onClick={confirmEmptyTrash} />
@@ -566,14 +566,14 @@ const SharedCollectionOptions: React.FC<SharedCollectionOptionProps> = ({
{isArchived ? (
<OverflowMenuOption
onClick={onUnarchiveClick}
- startIcon={<Unarchive />}
+ startIcon={<UnarchiveIcon />}
>
{t("unarchive_album")}
</OverflowMenuOption>
) : (
<OverflowMenuOption
onClick={onArchiveClick}
- startIcon={<ArchiveOutlined />}
+ startIcon={<ArchiveOutlinedIcon />}
>
{t("archive_album")}
</OverflowMenuOption>
@@ -650,14 +650,14 @@ const AlbumCollectionOptions: React.FC<AlbumCollectionOptionsProps> = ({
{isArchived ? (
<OverflowMenuOption
onClick={onUnarchiveClick}
- startIcon={<Unarchive />}
+ startIcon={<UnarchiveIcon />}
>
{t("unarchive_album")}
</OverflowMenuOption>
) : (
<OverflowMenuOption
onClick={onArchiveClick}
- startIcon={<ArchiveOutlined />}
+ startIcon={<ArchiveOutlinedIcon />}
>
{t("archive_album")}
</OverflowMenuOption>
@@ -667,14 +667,14 @@ const AlbumCollectionOptions: React.FC<AlbumCollectionOptionsProps> = ({
{isHidden ? (
<OverflowMenuOption
onClick={onUnhideClick}
- startIcon={<VisibilityOutlined />}
+ startIcon={<VisibilityOutlinedIcon />}
>
{t("unhide_collection")}
</OverflowMenuOption>
) : (
<OverflowMenuOption
onClick={onHideClick}
- startIcon={<VisibilityOffOutlined />}
+ startIcon={<VisibilityOffOutlinedIcon />}
>
{t("hide_collection")}
</OverflowMenuOption>
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 0721bf648a..f101b77f91 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -27,22 +27,20 @@ import SingleInputForm, {
} from "@ente/shared/components/SingleInputForm";
import { CustomError, parseSharingErrorCodes } from "@ente/shared/error";
import { formatDateTime } from "@ente/shared/time/format";
-import { default as Add, default as AddIcon } from "@mui/icons-material/Add";
+import AddIcon from "@mui/icons-material/Add";
import AdminPanelSettingsIcon from "@mui/icons-material/AdminPanelSettings";
import BlockIcon from "@mui/icons-material/Block";
-import ChevronRightIcon, {
- default as ChevronRight,
-} from "@mui/icons-material/ChevronRight";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import ContentCopyIcon from "@mui/icons-material/ContentCopyOutlined";
import DoneIcon from "@mui/icons-material/Done";
-import DownloadSharp from "@mui/icons-material/DownloadSharp";
+import DownloadSharpIcon from "@mui/icons-material/DownloadSharp";
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import LinkIcon from "@mui/icons-material/Link";
import ModeEditIcon from "@mui/icons-material/ModeEdit";
import Photo, { default as PhotoIcon } from "@mui/icons-material/Photo";
import PublicIcon from "@mui/icons-material/Public";
-import RemoveCircleOutline from "@mui/icons-material/RemoveCircleOutline";
-import Workspaces from "@mui/icons-material/Workspaces";
+import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline";
+import WorkspacesIcon from "@mui/icons-material/Workspaces";
import {
Dialog,
DialogProps,
@@ -297,7 +295,7 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({
<MenuItemDivider hasIcon />
<EnteMenuItem
label={t("COLLECT_PHOTOS")}
- startIcon={<DownloadSharp />}
+ startIcon={<DownloadSharpIcon />}
onClick={createCollectPhotoShareableURLHelper}
/>
</MenuItemGroup>
@@ -372,7 +370,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
title={t("shared_with_people_count", {
count: collection.sharees?.length ?? 0,
})}
- icon={<Workspaces />}
+ icon={<WorkspacesIcon />}
/>
<MenuItemGroup>
{collection.sharees.length > 0 ? (
@@ -388,7 +386,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
? collection.sharees[0]?.email
: null
}
- endIcon={<ChevronRight />}
+ endIcon={<ChevronRightIcon />}
/>
<MenuItemDivider hasIcon />
</>
@@ -948,7 +946,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
))}
<EnteMenuItem
- startIcon={<Add />}
+ startIcon={<AddIcon />}
onClick={openAddCollab}
label={
collaborators?.length
@@ -981,7 +979,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
</>
))}
<EnteMenuItem
- startIcon={<Add />}
+ startIcon={<AddIcon />}
fontWeight={"bold"}
onClick={openAddViewer}
label={
@@ -1454,7 +1452,7 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
<MenuItemGroup>
<EnteMenuItem
color="critical"
- startIcon={<RemoveCircleOutline />}
+ startIcon={<RemoveCircleOutlineIcon />}
onClick={disablePublicSharing}
label={t("REMOVE_LINK")}
/>
diff --git a/web/apps/photos/src/components/DropdownInput.tsx b/web/apps/photos/src/components/DropdownInput.tsx
index f6f27a4048..80224af30a 100644
--- a/web/apps/photos/src/components/DropdownInput.tsx
+++ b/web/apps/photos/src/components/DropdownInput.tsx
@@ -1,4 +1,4 @@
-import ExpandMore from "@mui/icons-material/ExpandMore";
+import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import {
Box,
MenuItem,
@@ -39,7 +39,7 @@ export default function DropdownInput<T extends string>({
<Stack spacing={"4px"}>
<Typography {...labelProps}>{label}</Typography>
<Select
- IconComponent={ExpandMore}
+ IconComponent={ExpandMoreIcon}
displayEmpty
variant="standard"
MenuProps={{
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index c8cad141dc..127f84073b 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -14,16 +14,16 @@ import { moveToTrash } from "@/new/photos/services/collection";
import { extractRawExif, parseExif } from "@/new/photos/services/exif";
import { AppContext } from "@/new/photos/types/context";
import { FlexWrapper } from "@ente/shared/components/Container";
-import AlbumOutlined from "@mui/icons-material/AlbumOutlined";
-import ChevronLeft from "@mui/icons-material/ChevronLeft";
-import ChevronRight from "@mui/icons-material/ChevronRight";
+import AlbumOutlinedIcon from "@mui/icons-material/AlbumOutlined";
+import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import CloseIcon from "@mui/icons-material/Close";
-import ContentCopy from "@mui/icons-material/ContentCopy";
+import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import DeleteIcon from "@mui/icons-material/Delete";
import EditIcon from "@mui/icons-material/Edit";
import FavoriteBorderIcon from "@mui/icons-material/FavoriteBorderRounded";
-import FavoriteIcon from "@mui/icons-material/FavoriteRounded";
-import DownloadIcon from "@mui/icons-material/FileDownloadOutlined";
+import FavoriteRoundedIcon from "@mui/icons-material/FavoriteRounded";
+import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
import FullscreenExitOutlinedIcon from "@mui/icons-material/FullscreenExitOutlined";
import FullscreenOutlinedIcon from "@mui/icons-material/FullscreenOutlined";
import InfoIcon from "@mui/icons-material/InfoOutlined";
@@ -755,7 +755,7 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
disabled={livePhotoBtnOptions.loading}
>
<FlexWrapper gap={"4px"}>
- {<AlbumOutlined />}{" "}
+ {<AlbumOutlinedIcon />}{" "}
{t("live_photo_indicator")}
</FlexWrapper>
</Button>
@@ -819,7 +819,7 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
)
}
>
- <DownloadIcon />
+ <FileDownloadOutlinedIcon />
</button>
)}
{props.enableDownload && shouldShowCopyOption && (
@@ -832,7 +832,7 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
)
}
>
- <ContentCopy fontSize="small" />
+ <ContentCopyIcon fontSize="small" />
</button>
)}
{isOwnFile && !props.isTrashCollection && (
@@ -904,7 +904,7 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
onClick={handleFavoriteClick}
>
{isFav ? (
- <FavoriteIcon />
+ <FavoriteRoundedIcon />
) : (
<FavoriteBorderIcon />
)}
@@ -926,13 +926,13 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = (props) => {
className="pswp__button pswp__button--arrow--left"
title={t("previous_key")}
>
- <ChevronLeft sx={{ pointerEvents: "none" }} />
+ <ChevronLeftIcon sx={{ pointerEvents: "none" }} />
</button>
<button
className="pswp__button pswp__button--arrow--right"
title={t("next_key")}
>
- <ChevronRight sx={{ pointerEvents: "none" }} />
+ <ChevronRightIcon sx={{ pointerEvents: "none" }} />
</button>
<div className="pswp__caption pswp-custom-caption-container">
<CaptionContainer />
diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsx
index 0b0535fd33..4c687e1556 100644
--- a/web/apps/photos/src/components/Sidebar/Preferences.tsx
+++ b/web/apps/photos/src/components/Sidebar/Preferences.tsx
@@ -25,7 +25,7 @@ import {
} from "@/new/photos/services/settings";
import { useAppContext } from "@/new/photos/types/context";
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
-import ChevronRight from "@mui/icons-material/ChevronRight";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import { Stack } from "@mui/material";
import DropdownInput from "components/DropdownInput";
import { t } from "i18next";
@@ -67,7 +67,7 @@ export const Preferences: React.FC<NestedSidebarDrawerVisibilityProps> = ({
{isMLSupported && (
<MenuItemGroup>
<EnteMenuItem
- endIcon={<ChevronRight />}
+ endIcon={<ChevronRightIcon />}
onClick={showMLSettings}
label={t("ml_search")}
/>
@@ -75,12 +75,12 @@ export const Preferences: React.FC<NestedSidebarDrawerVisibilityProps> = ({
)}
<EnteMenuItem
onClick={showMapSettings}
- endIcon={<ChevronRight />}
+ endIcon={<ChevronRightIcon />}
label={t("map")}
/>
<EnteMenuItem
onClick={showAdvancedSettings}
- endIcon={<ChevronRight />}
+ endIcon={<ChevronRightIcon />}
label={t("advanced")}
/>
</Stack>
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
index bf61c7a4d3..12131fad0f 100644
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/index.tsx
@@ -48,14 +48,14 @@ import {
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
import { THEME_COLOR } from "@ente/shared/themes/constants";
-import ArchiveOutlined from "@mui/icons-material/ArchiveOutlined";
+import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
import CategoryIcon from "@mui/icons-material/Category";
import CloseIcon from "@mui/icons-material/Close";
import DarkModeIcon from "@mui/icons-material/DarkMode";
-import DeleteOutline from "@mui/icons-material/DeleteOutline";
+import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
import LightModeIcon from "@mui/icons-material/LightMode";
-import LockOutlined from "@mui/icons-material/LockOutlined";
-import VisibilityOff from "@mui/icons-material/VisibilityOff";
+import LockOutlinedIcon from "@mui/icons-material/LockOutlined";
+import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
import {
Box,
Button,
@@ -447,7 +447,7 @@ const ShortcutSection: React.FC<ShortcutSectionProps> = ({
?.fileCount.toString()}
/>
<EnteMenuItem
- startIcon={<ArchiveOutlined />}
+ startIcon={<ArchiveOutlinedIcon />}
onClick={openArchiveSection}
variant="captioned"
label={t("section_archive")}
@@ -456,14 +456,14 @@ const ShortcutSection: React.FC<ShortcutSectionProps> = ({
?.fileCount.toString()}
/>
<EnteMenuItem
- startIcon={<VisibilityOff />}
+ startIcon={<VisibilityOffIcon />}
onClick={openHiddenSection}
variant="captioned"
label={t("section_hidden")}
- subIcon={<LockOutlined />}
+ subIcon={<LockOutlinedIcon />}
/>
<EnteMenuItem
- startIcon={<DeleteOutline />}
+ startIcon={<DeleteOutlineIcon />}
onClick={openTrashSection}
variant="captioned"
label={t("section_trash")}
diff --git a/web/apps/photos/src/components/Upload/UploadProgress.tsx b/web/apps/photos/src/components/Upload/UploadProgress.tsx
index 191c83e699..148180378a 100644
--- a/web/apps/photos/src/components/Upload/UploadProgress.tsx
+++ b/web/apps/photos/src/components/Upload/UploadProgress.tsx
@@ -8,7 +8,7 @@ import {
SpaceBetweenFlex,
VerticallyCenteredFlex,
} from "@ente/shared/components/Container";
-import Close from "@mui/icons-material/Close";
+import CloseIcon from "@mui/icons-material/Close";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import UnfoldLessIcon from "@mui/icons-material/UnfoldLess";
import UnfoldMoreIcon from "@mui/icons-material/UnfoldMore";
@@ -228,7 +228,7 @@ const UploadProgressTitle: React.FC = () => {
{expanded ? <UnfoldLessIcon /> : <UnfoldMoreIcon />}
</FilledIconButton>
<FilledIconButton onClick={onClose}>
- <Close />
+ <CloseIcon />
</FilledIconButton>
</Stack>
</Box>
diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsx
index f0461e76b6..38e732a083 100644
--- a/web/apps/photos/src/components/Upload/Uploader.tsx
+++ b/web/apps/photos/src/components/Upload/Uploader.tsx
@@ -22,7 +22,7 @@ import { NotificationAttributes } from "@/new/photos/types/notification";
import { firstNonEmpty } from "@/utils/array";
import { CustomError } from "@ente/shared/error";
import DiscFullIcon from "@mui/icons-material/DiscFull";
-import InfoOutlined from "@mui/icons-material/InfoRounded";
+import InfoRoundedIcon from "@mui/icons-material/InfoRounded";
import { t } from "i18next";
import { GalleryContext } from "pages/gallery";
import { useContext, useEffect, useRef, useState } from "react";
@@ -759,7 +759,7 @@ export default function Uploader({
case "parent":
if (importSuggestion.hasRootLevelFileWithFolder) {
showMiniDialog({
- icon: <InfoOutlined />,
+ icon: <InfoRoundedIcon />,
title: t("root_level_file_with_folder_not_allowed"),
message: (
<Trans
diff --git a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
index d5d598c3ee..179509b608 100644
--- a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
+++ b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
@@ -12,8 +12,8 @@ import {
} from "@/new/photos/components/PlaceholderThumbnails";
import { TRASH_SECTION } from "@/new/photos/services/collection";
import useLongPress from "@ente/shared/hooks/useLongPress";
-import AlbumOutlined from "@mui/icons-material/AlbumOutlined";
-import Favorite from "@mui/icons-material/FavoriteRounded";
+import AlbumOutlinedIcon from "@mui/icons-material/AlbumOutlined";
+import FavoriteRoundedIcon from "@mui/icons-material/FavoriteRounded";
import PlayCircleOutlineOutlinedIcon from "@mui/icons-material/PlayCircleOutlineOutlined";
import { styled } from "@mui/material";
import type { DisplayFile } from "components/PhotoFrame";
@@ -342,7 +342,7 @@ export default function PreviewCard(props: IProps) {
)}
{file.metadata.fileType === FileType.livePhoto ? (
<FileTypeIndicatorOverlay>
- <AlbumOutlined />
+ <AlbumOutlinedIcon />
</FileTypeIndicatorOverlay>
) : (
file.metadata.fileType === FileType.video && (
@@ -359,7 +359,7 @@ export default function PreviewCard(props: IProps) {
)}
{props.isFav && (
<FavOverlay>
- <Favorite />
+ <FavoriteRoundedIcon />
</FavOverlay>
)}
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index d274346ce1..5bc9e7d15a 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -20,8 +20,8 @@ import FavoriteBorderIcon from "@mui/icons-material/FavoriteBorderRounded";
import RemoveIcon from "@mui/icons-material/RemoveCircleOutline";
import RestoreIcon from "@mui/icons-material/Restore";
import UnArchiveIcon from "@mui/icons-material/Unarchive";
-import VisibilityOffOutlined from "@mui/icons-material/VisibilityOffOutlined";
-import VisibilityOutlined from "@mui/icons-material/VisibilityOutlined";
+import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
+import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
import { Box, IconButton, Stack, Tooltip } from "@mui/material";
import { t } from "i18next";
import { COLLECTION_OPS_TYPE } from "utils/collection";
@@ -221,7 +221,7 @@ const SelectedFileOptions = ({
<IconButton
onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
>
- <VisibilityOffOutlined />
+ <VisibilityOffOutlinedIcon />
</IconButton>
</Tooltip>
<Tooltip title={t("delete")}>
@@ -255,7 +255,7 @@ const SelectedFileOptions = ({
<IconButton
onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
>
- <VisibilityOffOutlined />
+ <VisibilityOffOutlinedIcon />
</IconButton>
</Tooltip>
<Tooltip title={t("delete")}>
@@ -309,7 +309,7 @@ const SelectedFileOptions = ({
<>
<Tooltip title={t("UNHIDE")}>
<IconButton onClick={unhideToCollection}>
- <VisibilityOutlined />
+ <VisibilityOutlinedIcon />
</IconButton>
</Tooltip>
<Tooltip title={t("download")}>
@@ -406,7 +406,7 @@ const SelectedFileOptions = ({
<IconButton
onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
>
- <VisibilityOffOutlined />
+ <VisibilityOffOutlinedIcon />
</IconButton>
</Tooltip>
<Tooltip title={t("delete")}>
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 9a6e5cb821..4eb4513397 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -36,7 +36,7 @@ import {
import { getTheme } from "@ente/shared/themes";
import { THEME_COLOR } from "@ente/shared/themes/constants";
import type { User } from "@ente/shared/user/types";
-import ArrowForward from "@mui/icons-material/ArrowForward";
+import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
import { CssBaseline, styled } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import Notification from "components/Notification";
@@ -100,7 +100,7 @@ export default function App({ Component, pageProps }: AppProps) {
showMiniDialog(updateReadyToInstallDialogAttributes(update));
} else {
setNotificationAttributes({
- endIcon: <ArrowForward />,
+ endIcon: <ArrowForwardIcon />,
variant: "secondary",
message: t("update_available"),
onClick: () =>
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index c663b4482a..4821d7204a 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -40,7 +40,7 @@ import SingleInputForm, {
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
import { CustomError, parseSharingErrorCodes } from "@ente/shared/error";
import { useFileInput } from "@ente/shared/hooks/useFileInput";
-import AddPhotoAlternateOutlined from "@mui/icons-material/AddPhotoAlternateOutlined";
+import AddPhotoAlternateOutlinedIcon from "@mui/icons-material/AddPhotoAlternateOutlined";
import CloseIcon from "@mui/icons-material/Close";
import DownloadIcon from "@mui/icons-material/Download";
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
@@ -583,7 +583,7 @@ const AddPhotosButton: React.FC<ButtonProps & IconButtonProps> = (props) => {
const disabled = !uploadManager.shouldAllowNewUpload();
const isSmallWidth = useIsSmallWidth();
- const icon = <AddPhotoAlternateOutlined />;
+ const icon = <AddPhotoAlternateOutlinedIcon />;
return (
<Box>
@@ -617,7 +617,7 @@ const AddMorePhotosButton: React.FC<ButtonProps> = (props) => {
{...props}
disabled={disabled}
color={"accent"}
- startIcon={<AddPhotoAlternateOutlined />}
+ startIcon={<AddPhotoAlternateOutlinedIcon />}
>
{t("add_more_photos")}
</Button>
diff --git a/web/packages/accounts/components/SignUp.tsx b/web/packages/accounts/components/SignUp.tsx
index 97bdd98dc2..a41bec8531 100644
--- a/web/packages/accounts/components/SignUp.tsx
+++ b/web/packages/accounts/components/SignUp.tsx
@@ -16,7 +16,7 @@ import {
setLocalReferralSource,
} from "@ente/shared/storage/localStorage/helpers";
import { SESSION_KEYS } from "@ente/shared/storage/sessionStorage";
-import InfoOutlined from "@mui/icons-material/InfoOutlined";
+import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
import {
Box,
Checkbox,
@@ -233,7 +233,7 @@ export const SignUp: React.FC<SignUpProps> = ({ router, login, host }) => {
color="secondary"
edge={"end"}
>
- <InfoOutlined />
+ <InfoOutlinedIcon />
</IconButton>
</Tooltip>
</InputAdornment>
diff --git a/web/packages/base/components/ErrorIndicator.tsx b/web/packages/base/components/ErrorIndicator.tsx
index fb2afe7087..3cf210c815 100644
--- a/web/packages/base/components/ErrorIndicator.tsx
+++ b/web/packages/base/components/ErrorIndicator.tsx
@@ -1,4 +1,4 @@
-import ErrorOutline from "@mui/icons-material/ErrorOutline";
+import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import { Box, Stack, Typography } from "@mui/material";
import { t } from "i18next";
import type React from "react";
@@ -14,7 +14,7 @@ export const ActivityErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack sx={{ gap: 2, alignItems: "center" }}>
- <ErrorOutline color="secondary" sx={{ color: "critical" }} />
+ <ErrorOutlineIcon color="secondary" sx={{ color: "critical" }} />
<Typography color="text.muted">
{children ?? t("generic_error")}
</Typography>
@@ -33,7 +33,7 @@ export const InlineErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Box sx={{ display: "flex", gap: "5px", alignItems: "center" }}>
- <ErrorOutline sx={{ fontSize: "16px", color: "critical.main" }} />
+ <ErrorOutlineIcon sx={{ fontSize: "16px", color: "critical.main" }} />
<Typography variant="small" color="critical.main">
{children ?? t("generic_error")}
</Typography>
diff --git a/web/packages/base/components/Titlebar.tsx b/web/packages/base/components/Titlebar.tsx
index 8cec0763c0..5a0edad0f6 100644
--- a/web/packages/base/components/Titlebar.tsx
+++ b/web/packages/base/components/Titlebar.tsx
@@ -1,6 +1,6 @@
import { FlexWrapper } from "@ente/shared/components/Container";
-import ArrowBack from "@mui/icons-material/ArrowBack";
-import Close from "@mui/icons-material/Close";
+import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import CloseIcon from "@mui/icons-material/Close";
import { Box, IconButton, Typography } from "@mui/material";
import React from "react";
@@ -34,13 +34,13 @@ export const Titlebar: React.FC<TitlebarProps> = ({
onClick={onClose}
color={backIsClose ? "secondary" : "primary"}
>
- {backIsClose ? <Close /> : <ArrowBack />}
+ {backIsClose ? <CloseIcon /> : <ArrowBackIcon />}
</IconButton>
<Box display={"flex"} gap="4px">
{actionButton && actionButton}
{!backIsClose && (
<IconButton onClick={onRootClose} color={"secondary"}>
- <Close />
+ <CloseIcon />
</IconButton>
)}
</Box>
diff --git a/web/packages/base/components/mui/ActivityIndicator.tsx b/web/packages/base/components/mui/ActivityIndicator.tsx
index b52980012d..b7ae7c9008 100644
--- a/web/packages/base/components/mui/ActivityIndicator.tsx
+++ b/web/packages/base/components/mui/ActivityIndicator.tsx
@@ -1,4 +1,4 @@
-import ErrorOutline from "@mui/icons-material/ErrorOutline";
+import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import {
CircularProgress,
Stack,
@@ -41,7 +41,7 @@ export const ErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack sx={{ gap: 2, alignItems: "center" }}>
- <ErrorOutline color="secondary" sx={{ color: "critical" }} />
+ <ErrorOutlineIcon color="secondary" sx={{ color: "critical" }} />
<Typography color="text.muted">
{children ?? t("generic_error")}
</Typography>
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 5ce5d12559..fdfabd813f 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -1,5 +1,5 @@
-import ArrowBack from "@mui/icons-material/ArrowBack";
-import Close from "@mui/icons-material/Close";
+import ArrowBackIcon from "@mui/icons-material/ArrowBack";
+import CloseIcon from "@mui/icons-material/Close";
import {
Box,
Drawer,
@@ -116,12 +116,12 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({
<Stack sx={{ gap: "4px" }}>
<SpaceBetweenFlex sx={{ minHeight: "48px" }}>
<IconButton onClick={onClose} color={"primary"}>
- <ArrowBack />
+ <ArrowBackIcon />
</IconButton>
<Box display={"flex"} gap="4px">
{actionButton && actionButton}
<IconButton onClick={onRootClose} color={"secondary"}>
- <Close />
+ <CloseIcon />
</IconButton>
</Box>
</SpaceBetweenFlex>
diff --git a/web/packages/base/components/utils/dialog.tsx b/web/packages/base/components/utils/dialog.tsx
index 340830b77d..36745e38ec 100644
--- a/web/packages/base/components/utils/dialog.tsx
+++ b/web/packages/base/components/utils/dialog.tsx
@@ -1,4 +1,4 @@
-import ErrorOutline from "@mui/icons-material/ErrorOutline";
+import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import { t } from "i18next";
import { useCallback, useState } from "react";
import type { MiniDialogAttributes } from "../MiniDialog";
@@ -52,7 +52,7 @@ export const errorDialogAttributes = (
return {
title,
- icon: <ErrorOutline />,
+ icon: <ErrorOutlineIcon />,
message,
continue: { color: "critical" },
cancel: false,
diff --git a/web/packages/new/photos/components/PlaceholderThumbnails.tsx b/web/packages/new/photos/components/PlaceholderThumbnails.tsx
index d6fab83a28..21da05abb6 100644
--- a/web/packages/new/photos/components/PlaceholderThumbnails.tsx
+++ b/web/packages/new/photos/components/PlaceholderThumbnails.tsx
@@ -1,7 +1,7 @@
import { Overlay } from "@/base/components/mui/Container";
import { FileType } from "@/media/file-type";
-import PhotoOutlined from "@mui/icons-material/PhotoOutlined";
-import PlayCircleOutlineOutlined from "@mui/icons-material/PlayCircleOutlineOutlined";
+import PhotoOutlinedIcon from "@mui/icons-material/PhotoOutlined";
+import PlayCircleOutlineOutlinedIcon from "@mui/icons-material/PlayCircleOutlineOutlined";
import { styled } from "@mui/material";
import React from "react";
@@ -31,9 +31,9 @@ export const StaticThumbnail: React.FC<Iprops> = (props) => {
})}
>
{props.fileType !== FileType.video ? (
- <PhotoOutlined />
+ <PhotoOutlinedIcon />
) : (
- <PlayCircleOutlineOutlined />
+ <PlayCircleOutlineOutlinedIcon />
)}
</CenteredOverlay>
);
diff --git a/web/packages/new/photos/components/PlanSelector.tsx b/web/packages/new/photos/components/PlanSelector.tsx
index a0c1ed49d1..3d6982f792 100644
--- a/web/packages/new/photos/components/PlanSelector.tsx
+++ b/web/packages/new/photos/components/PlanSelector.tsx
@@ -37,10 +37,10 @@ import {
FluidContainer,
SpaceBetweenFlex,
} from "@ente/shared/components/Container";
-import ArrowForward from "@mui/icons-material/ArrowForward";
-import ChevronRight from "@mui/icons-material/ChevronRight";
-import Close from "@mui/icons-material/Close";
-import Done from "@mui/icons-material/Done";
+import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import CloseIcon from "@mui/icons-material/Close";
+import DoneIcon from "@mui/icons-material/Done";
import {
Button,
type ButtonProps,
@@ -370,7 +370,7 @@ const PaidSubscriptionPlanSelectorCard: React.FC<
</Typography>
</Box>
<IconButton onClick={onClose} color="secondary">
- <Close />
+ <CloseIcon />
</IconButton>
</SpaceBetweenFlex>
</Box>
@@ -591,7 +591,7 @@ const TopAlignedFluidContainer = styled(FluidContainer)`
`;
const DisabledPlanButton = styled((props: ButtonProps) => (
- <Button disabled endIcon={<Done />} {...props} />
+ <Button disabled endIcon={<DoneIcon />} {...props} />
))(({ theme }) => ({
"&.Mui-disabled": {
backgroundColor: "transparent",
@@ -600,7 +600,7 @@ const DisabledPlanButton = styled((props: ButtonProps) => (
}));
const ActivePlanButton = styled((props: ButtonProps) => (
- <Button color="accent" {...props} endIcon={<ArrowForward />} />
+ <Button color="accent" {...props} endIcon={<ArrowForwardIcon />} />
))(() => ({
".MuiButton-endIcon": {
transition: "transform .2s ease-in-out",
@@ -636,7 +636,7 @@ const FreePlanRow: React.FC<FreePlanRowProps> = ({ onClose, storage }) => (
</Typography>
</Box>
<IconButton className={"endIcon"}>
- <ArrowForward />
+ <ArrowForwardIcon />
</IconButton>
</FreePlanRow_>
);
@@ -812,7 +812,7 @@ const ManageSubscriptionButton: React.FC<ButtonProps> = ({
children,
...props
}) => (
- <Button size="large" endIcon={<ChevronRight />} {...props}>
+ <Button size="large" endIcon={<ChevronRightIcon />} {...props}>
<FluidContainer>{children}</FluidContainer>
</Button>
);
diff --git a/web/packages/new/photos/components/WhatsNew.tsx b/web/packages/new/photos/components/WhatsNew.tsx
index e0de579901..0f4f4bbc37 100644
--- a/web/packages/new/photos/components/WhatsNew.tsx
+++ b/web/packages/new/photos/components/WhatsNew.tsx
@@ -2,7 +2,7 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { useIsSmallWidth } from "@/base/components/utils/hooks";
import { ensureElectron } from "@/base/electron";
import { ut } from "@/base/i18n";
-import ArrowForward from "@mui/icons-material/ArrowForward";
+import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
import {
Box,
Dialog,
@@ -58,7 +58,7 @@ export const WhatsNew: React.FC<WhatsNewProps> = ({ open, onClose }) => {
onClick={onClose}
color="accent"
fullWidth
- endIcon={<ArrowForward />}
+ endIcon={<ArrowForwardIcon />}
>
<ButtonContents>{ut("Continue")}</ButtonContents>
</FocusVisibleButton>
diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsx
index 5606758559..5786559998 100644
--- a/web/packages/new/photos/components/gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/gallery/BarImpl.tsx
@@ -20,12 +20,12 @@ import type {
} from "@/new/photos/services/collection/ui";
import type { Person } from "@/new/photos/services/ml/people";
import ArchiveIcon from "@mui/icons-material/Archive";
-import ExpandMore from "@mui/icons-material/ExpandMore";
-import Favorite from "@mui/icons-material/FavoriteRounded";
+import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
+import FavoriteRoundedIcon from "@mui/icons-material/FavoriteRounded";
import LinkIcon from "@mui/icons-material/Link";
import NavigateNextIcon from "@mui/icons-material/NavigateNext";
import PeopleIcon from "@mui/icons-material/People";
-import PushPin from "@mui/icons-material/PushPin";
+import PushPinIcon from "@mui/icons-material/PushPin";
import { Box, IconButton, Stack, Typography, styled } from "@mui/material";
import { t } from "i18next";
import React, {
@@ -227,7 +227,7 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
transparentTriggerButtonBackground
/>
<IconButton onClick={onShowAllCollections}>
- <ExpandMore />
+ <ExpandMoreIcon />
</IconButton>
</>
)}
@@ -241,7 +241,7 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
onChangeSortBy={onChangeCollectionsSortBy}
/>
<FilledIconButton onClick={onShowAllCollections}>
- <ExpandMore />
+ <ExpandMoreIcon />
</FilledIconButton>
</Box>
);
@@ -524,7 +524,7 @@ const CollectionBarCardIcon: React.FC<CollectionBarCardIconProps> = ({
type,
}) => (
<CollectionBarCardIcon_>
- {type == "favorites" && <Favorite />}
+ {type == "favorites" && <FavoriteRoundedIcon />}
{type == "archived" && (
<ArchiveIcon
sx={(theme) => ({
@@ -536,7 +536,7 @@ const CollectionBarCardIcon: React.FC<CollectionBarCardIconProps> = ({
{(type == "incomingShareViewer" ||
type == "incomingShareCollaborator") && <PeopleIcon />}
{type == "sharedOnlyViaLink" && <LinkIcon />}
- {type == "pinned" && <PushPin />}
+ {type == "pinned" && <PushPinIcon />}
</CollectionBarCardIcon_>
);
diff --git a/web/packages/new/photos/components/share/PublicLinkCreated.tsx b/web/packages/new/photos/components/share/PublicLinkCreated.tsx
index 21a7c03895..c1d37f356d 100644
--- a/web/packages/new/photos/components/share/PublicLinkCreated.tsx
+++ b/web/packages/new/photos/components/share/PublicLinkCreated.tsx
@@ -1,6 +1,6 @@
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
-import Check from "@mui/icons-material/Check";
+import CheckIcon from "@mui/icons-material/Check";
import { Box, Dialog, DialogContent, DialogTitle, Stack } from "@mui/material";
import { t } from "i18next";
@@ -32,7 +32,7 @@ export const PublicLinkCreated: React.FC<PublicLinkCreatedProps> = ({
</DialogTitle>
<DialogContent>
<Box sx={{ textAlign: "center" }}>
- <Check sx={{ fontSize: "48px" }} />
+ <CheckIcon sx={{ fontSize: "48px" }} />
</Box>
<Stack sx={{ pt: 3, gap: 1 }}>
<FocusVisibleButton
diff --git a/web/packages/new/photos/components/utils/download.tsx b/web/packages/new/photos/components/utils/download.tsx
index 664cf19641..7bc839bb93 100644
--- a/web/packages/new/photos/components/utils/download.tsx
+++ b/web/packages/new/photos/components/utils/download.tsx
@@ -2,7 +2,7 @@ import type { MiniDialogAttributes } from "@/base/components/MiniDialog";
import { ensureElectron } from "@/base/electron";
import type { AppUpdate } from "@/base/types/ipc";
import { openURL } from "@/new/photos/utils/web";
-import AutoAwesomeOutlined from "@mui/icons-material/AutoAwesomeOutlined";
+import AutoAwesomeOutlinedIcon from "@mui/icons-material/AutoAwesomeOutlined";
import { t } from "i18next";
export const downloadAppDialogAttributes = (): MiniDialogAttributes => ({
@@ -21,7 +21,7 @@ export const updateReadyToInstallDialogAttributes = ({
}: AppUpdate): MiniDialogAttributes => ({
title: t("update_available"),
message: t("update_installable_message"),
- icon: <AutoAwesomeOutlined />,
+ icon: <AutoAwesomeOutlinedIcon />,
nonClosable: true,
continue: {
text: t("install_now"),
@@ -38,7 +38,7 @@ export const updateAvailableForDownloadDialogAttributes = ({
}: AppUpdate): MiniDialogAttributes => ({
title: t("update_available"),
message: t("update_available_message"),
- icon: <AutoAwesomeOutlined />,
+ icon: <AutoAwesomeOutlinedIcon />,
continue: {
text: t("download_and_install"),
action: downloadApp,