Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathi982e5876d9d6
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/InfoItem.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/InfoItem.tsx
index 061b1dcac2..75ae8fac21 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/InfoItem.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/InfoItem.tsx
@@ -1,7 +1,6 @@
import { FlexWrapper } from "@ente/shared/components/Container";
import Edit from "@mui/icons-material/Edit";
-import { Box, IconButton, Typography } from "@mui/material";
-import { SmallLoadingSpinner } from "../styledComponents/SmallLoadingSpinner";
+import { Box, CircularProgress, IconButton, Typography } from "@mui/material";
interface Iprops {
icon: JSX.Element;
@@ -63,7 +62,11 @@ export default function InfoItem({
? customEndButton
: !hideEditOption && (
<IconButton onClick={openEditor} color="secondary">
- {!loading ? <Edit /> : <SmallLoadingSpinner />}
+ {!loading ? (
+ <Edit />
+ ) : (
+ <CircularProgress size={"24px"} color="inherit" />
+ )}
</IconButton>
)}
</FlexWrapper>
diff --git a/web/apps/photos/src/components/PhotoViewer/styledComponents/SmallLoadingSpinner.tsx b/web/apps/photos/src/components/PhotoViewer/styledComponents/SmallLoadingSpinner.tsx
deleted file mode 100644
index 996a80c6a5..0000000000
--- a/web/apps/photos/src/components/PhotoViewer/styledComponents/SmallLoadingSpinner.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
-
-export const SmallLoadingSpinner = () => (
- <ActivityIndicator
- style={{
- width: "20px",
- height: "20px",
- }}
- />
-);