Skip to content

Commit fba1e9c

Browse files
trilliumclaudehappy-otter
committed
Fix: Replace non-existent StyledButton with MUI Button component
The buttonGroup component was importing StyledButton from ProjectForm.jsx, but this export no longer exists in that file. This caused a build error during the Vite build process. Replaced StyledButton with the standard MUI Button component and updated the styling to match the patterns used in ProjectForm.jsx (width: 150px, cursor: pointer). This fixes the build error: "StyledButton" is not exported by "src/components/ProjectForm.jsx" Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent de6dff8 commit fba1e9c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

client/src/components/manageProjects/editPMs/buttonGroup.jsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
import { CircularProgress, Grid } from "@mui/material";
2-
import { StyledButton } from '../../ProjectForm';
1+
import { CircularProgress, Grid, Button } from "@mui/material";
32

43
const ButtonGroup = ({ btnName1, btnName2, callBackFn1, callBackFn2, isLoading }) => (
54
<Grid container justifyContent="space-evenly" sx={{ my: 3 }}>
65
<Grid item xs="auto">
7-
<StyledButton
8-
sx="large"
9-
cursor="pointer"
6+
<Button
7+
sx={{ width: '150px', cursor: 'pointer' }}
108
variant="contained"
119
onClick={(btn) => callBackFn1(btn)}
1210
>
1311
{isLoading ? <CircularProgress /> : `${btnName1}`}
14-
</StyledButton>
12+
</Button>
1513
</Grid>
1614
<Grid item xs="auto">
17-
<StyledButton
18-
sx="large"
19-
cursor="pointer"
15+
<Button
16+
sx={{ width: '150px', cursor: 'pointer' }}
2017
variant="contained"
2118
onClick={callBackFn2}
2219
>
2320
{btnName2}
24-
</StyledButton>
21+
</Button>
2522
</Grid>
2623
</Grid>
2724
);

0 commit comments

Comments
 (0)