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:
Manav Rathi
2025-01-06 11:11:45 +05:30
parent 4ce934a0f9
commit b94332aaa7
8 changed files with 91 additions and 44 deletions

View File

@@ -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>
);
};
};