Skip to content

Commit 02e783c

Browse files
trilliumclaudehappy-otter
committed
Fix: Frontend build errors in ManageProjects and buttonGroup components
Fixed two build errors preventing the frontend Docker image from building: 1. Removed duplicate 'display' key in loadingStyle object (ManageProjects.jsx) - The loadingStyle object had both "display": "none" and "display": "flex" - Kept "display": "flex" which is correct for the loading overlay - Introduced in commit 3a25f7f by JamesNg on 2025-01-29 2. Replaced non-existent StyledButton import with MUI Button (buttonGroup.jsx) - Component was importing StyledButton from ProjectForm.jsx - StyledButton export was removed in commit 8e9ac7b by Kaipher on 2025-10-06 - Component was created in commit cf194d2 by JamesNg on 2025-09-29 - Updated to use standard MUI Button component with matching styles Build errors resolved: - "Duplicate key 'display' in object literal" - "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 293c618 commit 02e783c

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
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
);

client/src/pages/ManageProjects.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const PAGES = Object.freeze({
1717

1818
// Added styles for MUI components
1919
const loadingStyle = {
20-
"display": "none",
2120
"position": "absolute",
2221
"display": "flex",
2322
"flexDirection": "row",

0 commit comments

Comments
 (0)