Skip to content

Commit 0e35dfb

Browse files
authored
Merge pull request #2100 from trillium/hotfix/buttongroup-mui-button
hotfix
2 parents ffda4f4 + 046aa12 commit 0e35dfb

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed
Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
1-
import { CircularProgress, Grid } from "@mui/material";
2-
import { StyledButton } from '../../ProjectForm';
1+
import { CircularProgress, Grid, Button } from '@mui/material';
32

4-
const ButtonGroup = ({ btnName1, btnName2, callBackFn1, callBackFn2, isLoading }) => (
3+
const ButtonGroup = ({
4+
btnName1,
5+
btnName2,
6+
callBackFn1,
7+
callBackFn2,
8+
isLoading,
9+
}) => (
510
<Grid container justifyContent="space-evenly" sx={{ my: 3 }}>
611
<Grid item xs="auto">
7-
<StyledButton
8-
sx="large"
9-
cursor="pointer"
12+
<Button
13+
size="large"
1014
variant="contained"
15+
sx={{ width: '150px', cursor: 'pointer' }}
1116
onClick={(btn) => callBackFn1(btn)}
1217
>
1318
{isLoading ? <CircularProgress /> : `${btnName1}`}
14-
</StyledButton>
19+
</Button>
1520
</Grid>
1621
<Grid item xs="auto">
17-
<StyledButton
18-
sx="large"
19-
cursor="pointer"
22+
<Button
23+
size="large"
2024
variant="contained"
25+
sx={{ width: '150px', cursor: 'pointer' }}
2126
onClick={callBackFn2}
2227
>
2328
{btnName2}
24-
</StyledButton>
29+
</Button>
2530
</Grid>
2631
</Grid>
2732
);
2833

29-
export default ButtonGroup
34+
export default ButtonGroup;

0 commit comments

Comments
 (0)