Skip to content

Commit 9319094

Browse files
committed
add sx props to bugform
1 parent 5269223 commit 9319094

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/client/src/core/BugForm.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,26 @@ const BugForm = ({ sx = {}, onClose, children, iconButtons = [] }) => {
4646
);
4747
};
4848

49-
const Header = ({ children }) => {
49+
const Header = ({ children, sx = {} }) => {
5050
return (
5151
<CardHeader
5252
component={Paper}
5353
square
5454
elevation={0}
5555
sx={{
5656
padding: "16px",
57+
...sx,
5758
}}
5859
title={children}
5960
></CardHeader>
6061
);
6162
};
6263

63-
const Body = ({ children }) => {
64-
return <CardContent>{children}</CardContent>;
64+
const Body = ({ children, sx = {} }) => {
65+
return <CardContent sx={{ ...sx }}>{children}</CardContent>;
6566
};
6667

67-
const Actions = ({ children }) => {
68+
const Actions = ({ children, sx = {} }) => {
6869
return (
6970
<CardActions
7071
sx={{
@@ -73,6 +74,7 @@ const Actions = ({ children }) => {
7374
},
7475
padding: "16px",
7576
justifyContent: "flex-end",
77+
...sx,
7678
}}
7779
>
7880
{children}

0 commit comments

Comments
 (0)