Skip to content

armgit / ente

Public Imported from GitHub
0

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

T

Manav Rathi77257aa6ab2f
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index d7d73d91e3..c8cad141dc 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -1013,29 +1013,27 @@ const CaptionContainer = styled("div")(({ theme }) => ({
backdropFilter: `blur(${theme.colors.blur.base})`,
}));
-function CircularProgressWithLabel(
- props: CircularProgressProps & { value: number },
-) {
- return (
- <>
- <CircularProgress variant="determinate" {...props} color="accent" />
- <Overlay
- sx={{
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- height: "40px",
- }}
- >
- <Typography
- variant="mini"
- component="div"
- color="text.secondary"
- >{`${Math.round(props.value)}%`}</Typography>
- </Overlay>
- </>
- );
-}
+const CircularProgressWithLabel: React.FC<
+ Pick<CircularProgressProps, "value">
+> = ({ value }) => (
+ <>
+ <CircularProgress value={value} variant="determinate" color="accent" />
+ <Overlay
+ sx={{
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ height: "40px",
+ }}
+ >
+ <Typography
+ variant="mini"
+ component="div"
+ color="text.secondary"
+ >{`${Math.round(value)}%`}</Typography>
+ </Overlay>
+ </>
+);
type ConversionFailedNotificationProps = ModalVisibilityProps & ButtonishProps;