Skip to content

armgit / ente

Public Imported from GitHub
0

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

Icon

Manav Rathi167b9cfa4263
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 6cb8f0ddd1..37ad4a78f4 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1307,18 +1307,20 @@ export const UploadButton: React.FC<ButtonProps & IconButtonProps> = (
const disabled = !uploadManager.shouldAllowNewUpload();
const isMobileWidth = useIsMobileWidth();
+ const icon = <FileUploadOutlinedIcon />;
+
return (
<Box>
{isMobileWidth ? (
<IconButton {...props} disabled={disabled}>
- {<FileUploadOutlinedIcon />}
+ {icon}
</IconButton>
) : (
<Button
{...props}
disabled={disabled}
color={"secondary"}
- startIcon={<FileUploadOutlinedIcon />}
+ startIcon={icon}
>
{t("upload")}
</Button>