Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(MUI):move-deprecated-system-prompts-to-sx

Aswin Asok1b5970bef15d
diff --git a/web/apps/ensu/src/components/WhatsNewDialog.tsx b/web/apps/ensu/src/components/WhatsNewDialog.tsx
index d3835f001e..cd40f178f1 100644
--- a/web/apps/ensu/src/components/WhatsNewDialog.tsx
+++ b/web/apps/ensu/src/components/WhatsNewDialog.tsx
@@ -28,7 +28,7 @@ export const WhatsNewDialog: React.FC<WhatsNewDialogProps> = ({
{entries.map((entry, index) => (
<Stack key={`${entry.title}-${index}`} spacing={1}>
<Typography variant="h6">{entry.title}</Typography>
- <Typography color="text.muted">
+ <Typography sx={{ color: "text.muted" }}>
{entry.description}
</Typography>
</Stack>
diff --git a/web/apps/ensu/src/components/chat/HoverRiveLogo.tsx b/web/apps/ensu/src/components/chat/HoverRiveLogo.tsx
index 3446038b3c..1b5460ff41 100644
--- a/web/apps/ensu/src/components/chat/HoverRiveLogo.tsx
+++ b/web/apps/ensu/src/components/chat/HoverRiveLogo.tsx
@@ -162,8 +162,6 @@ const HoverRiveLogo = memo(
<Box
component="canvas"
ref={canvasRef}
- width={sizePx}
- height={sizePx}
aria-label={`${alt} animation`}
sx={{
position: "absolute",
diff --git a/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx b/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx
index 7abaece7f8..60bea31ff1 100644
--- a/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx
+++ b/web/apps/paste/src/features/paste/components/PasteCreatePanel.tsx
@@ -517,7 +517,9 @@ export const PasteCreatePanel = ({
</Box>
{createError && (
- <Typography color="error">{createError}</Typography>
+ <Typography sx={{ color: "error.main" }}>
+ {createError}
+ </Typography>
)}
{createdLink && (
diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsx
index 98906906be..b6ad039e66 100644
--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx
+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx
@@ -554,7 +554,7 @@ const AllAlbumsContent: React.FC<AllAlbumsContentProps> = ({
height: "100%",
}}
>
- <Typography color="text.muted">
+ <Typography sx={{ color: "text.muted" }}>
{t("no_results")}
</Typography>
</Box>
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index c01ae85be6..0962871151 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -640,7 +640,7 @@ const AllPeopleContent: React.FC<AllPeopleContentProps> = ({
return (
<DialogContent sx={{ height: "80svh" }}>
<CenteredMessage>
- <Typography color="text.muted">
+ <Typography sx={{ color: "text.muted" }}>
{t("no_results")}
</Typography>
</CenteredMessage>
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
index 58a04968e7..c2947c63a4 100644
--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
@@ -1659,7 +1659,7 @@ export const CollectionMapDialog: React.FC<CollectionMapDialogProps> = ({
if (error) {
return (
<CenteredBox>
- <Typography variant="body" color="text.secondary">
+ <Typography variant="body" sx={{ color: "text.secondary" }}>
{error}
</Typography>
</CenteredBox>
@@ -1678,7 +1678,7 @@ export const CollectionMapDialog: React.FC<CollectionMapDialogProps> = ({
if (!mapPoints.length || !mapCenter || !mapIndex) {
return (
<CenteredBox onClose={onClose} closeLabel={t("close")}>
- <Typography variant="body" color="text.secondary">
+ <Typography variant="body" sx={{ color: "text.secondary" }}>
{t("no_geotagged_photos")}
</Typography>
</CenteredBox>
@@ -2173,7 +2173,7 @@ function CollectionSidebar({
</Typography>
<Typography
variant="small"
- color="text.secondary"
+ sx={{ color: "text.secondary" }}
>
{t("zoom_out_to_see_photos")}
</Typography>
diff --git a/web/apps/photos/src/pages/large-files.tsx b/web/apps/photos/src/pages/large-files.tsx
index 229d069bc6..541bf85a26 100644
--- a/web/apps/photos/src/pages/large-files.tsx
+++ b/web/apps/photos/src/pages/large-files.tsx
@@ -283,7 +283,7 @@ const LoadFailed: React.FC = () => (
const NoLargeFilesFound: React.FC = () => (
<CenteredFill>
- <Typography color="text.muted" sx={{ textAlign: "center" }}>
+ <Typography sx={{ color: "text.muted", textAlign: "center" }}>
{t("no_large_files")}
</Typography>
</CenteredFill>
diff --git a/web/apps/share/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsx
index 52a700bf89..d74e8557b5 100644
--- a/web/apps/share/src/components/file-share/FileShareView.tsx
+++ b/web/apps/share/src/components/file-share/FileShareView.tsx
@@ -147,7 +147,10 @@ export const FileShareView: React.FC = () => {
p: 3,
}}
>
- <Typography variant="body" color="error">
+ <Typography
+ variant="body"
+ sx={{ color: "error.main" }}
+ >
{error}
</Typography>
</Box>
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index 2c7c666fbd..1f2d1a6932 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -300,7 +300,7 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
<Divider />
{searchFilteredCollections.length === 0 && !showCreateButton ? (
<NoResultsContent>
- <Typography color="text.muted">
+ <Typography sx={{ color: "text.muted" }}>
{t("no_results")}
</Typography>
</NoResultsContent>
diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsx
index 492772b4c6..98507d8999 100644
--- a/web/packages/new/photos/pages/duplicates.tsx
+++ b/web/packages/new/photos/pages/duplicates.tsx
@@ -409,7 +409,7 @@ const LoadFailed: React.FC = () => (
const NoDuplicatesFound: React.FC = () => (
<CenteredFill>
- <Typography color="text.muted" sx={{ textAlign: "center" }}>
+ <Typography sx={{ color: "text.muted", textAlign: "center" }}>
{t("no_duplicates")}
</Typography>
</CenteredFill>
@@ -561,7 +561,9 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =
paddingBlock: "24px 0px",
}}
>
- <Typography color={checked ? "text.base" : "text.muted"}>
+ <Typography
+ sx={{ color: checked ? "text.base" : "text.muted" }}
+ >
{t("duplicate_group_description", { count, itemSize })}
</Typography>
{/* The size of this Checkbox is 42px. */}