Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathi32a47b402048
diff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsx
index 08fbffc123..cc58b03598 100644
--- a/web/apps/photos/src/components/DeleteAccountModal.tsx
+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx
@@ -267,11 +267,12 @@ function MultilineInput({
/>
<Typography
variant="small"
- sx={{
- px: "8px",
- color: "text.secondary",
- ...(messageSxProps ?? {}),
- }}
+ sx={[
+ { px: "8px", color: "text.secondary" },
+ ...(Array.isArray(messageSxProps)
+ ? messageSxProps
+ : [messageSxProps]),
+ ]}
>
{message}
</Typography>
diff --git a/web/apps/photos/src/components/DropdownInput.tsx b/web/apps/photos/src/components/DropdownInput.tsx
index 34527ebcaa..cb5bc18810 100644
--- a/web/apps/photos/src/components/DropdownInput.tsx
+++ b/web/apps/photos/src/components/DropdownInput.tsx
@@ -117,11 +117,12 @@ export default function DropdownInput<T extends string>({
{message && (
<Typography
variant="small"
- sx={{
- px: "8px",
- color: "text.muted",
- ...(messageSxProps ?? {}),
- }}
+ sx={[
+ { px: "8px", color: "text.muted" },
+ ...(Array.isArray(messageSxProps)
+ ? messageSxProps
+ : [messageSxProps]),
+ ]}
>
{message}
</Typography>