mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 02:07:33 +00:00
codemods + manual afterwords
npx @mui/codemod@latest deprecations/all `git ls-files '**.tsx'` ; npx @mui/codemod@latest v6.0.0/styled `git ls-files '**.tsx'` ; npx @mui/codemod@latest v6.0.0/sx-prop `git ls-files '**.tsx'` ; npx @mui/codemod@latest v6.0.0/system-props `git ls-files '**.tsx'`
This commit is contained in:
@@ -259,7 +259,7 @@ export const AttributedMiniDialog: React.FC<
|
||||
);
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
(<Dialog
|
||||
open={open}
|
||||
fullWidth
|
||||
PaperProps={{
|
||||
@@ -274,19 +274,19 @@ export const AttributedMiniDialog: React.FC<
|
||||
>
|
||||
{(attributes.icon ?? attributes.title) ? (
|
||||
<Box
|
||||
sx={{
|
||||
sx={(theme) => ({
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
"& > svg": {
|
||||
fontSize: "32px",
|
||||
color: (theme) => theme.colors.stroke.faint,
|
||||
color: theme.colors.stroke.faint,
|
||||
},
|
||||
padding:
|
||||
attributes.icon && attributes.title
|
||||
? "20px 16px 0px 16px"
|
||||
: "24px 16px 4px 16px",
|
||||
}}
|
||||
})}
|
||||
>
|
||||
{attributes.title && (
|
||||
<DialogTitle
|
||||
@@ -303,7 +303,7 @@ export const AttributedMiniDialog: React.FC<
|
||||
{attributes.icon}
|
||||
</Box>
|
||||
) : (
|
||||
<Box sx={{ height: "8px" }} /> /* Spacer */
|
||||
(<Box sx={{ height: "8px" }} />) /* Spacer */
|
||||
)}
|
||||
<DialogContent>
|
||||
{attributes.message && (
|
||||
@@ -311,7 +311,9 @@ export const AttributedMiniDialog: React.FC<
|
||||
component={
|
||||
typeof attributes.message == "string" ? "p" : "div"
|
||||
}
|
||||
color="text.muted"
|
||||
sx={{
|
||||
color: "text.muted",
|
||||
}}
|
||||
>
|
||||
{attributes.message}
|
||||
</Typography>
|
||||
@@ -336,7 +338,7 @@ export const AttributedMiniDialog: React.FC<
|
||||
)}
|
||||
</Stack>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</Dialog>)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -386,4 +388,4 @@ export const TitledMiniDialog: React.FC<
|
||||
<DialogContent>{children}</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user