Skip to content

Commit 583bc2c

Browse files
committed
feat(ProjectForm): display project name in form header instead of static text
1 parent a6c3a7b commit 583bc2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/src/components/ProjectForm.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,13 @@ export default function ProjectForm({
229229
</Grid>
230230
);
231231

232+
const projectName =
233+
formData?.name || projectToEdit?.name || '[unnamed project]';
234+
232235
return (
233236
<Box sx={{ px: 0.5 }}>
234237
<Box sx={{ textAlign: 'center' }}>
235-
<Typography variant="h1">Project Management</Typography>
238+
<Typography variant="h1">{projectName}</Typography>
236239
</Box>
237240
{auth.user.accessLevel === 'admin' ||
238241
auth.user.accessLevel == 'superadmin' ? (

0 commit comments

Comments
 (0)