Skip to content

Commit

Permalink
Use MUI components
Browse files Browse the repository at this point in the history
  • Loading branch information
RunoBoy committed May 19, 2024
1 parent 470641b commit cec10e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/app/[locale]/components/ProjectDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ const ProjectDetailsPage: React.FC<ProjectDetailsPageProps> = ({
<Typography variant="h4">{project?.name}</Typography>
</Grid>
<Grid item xs={12} sm={6} justifyContent="flex-end">
<div style={{float: 'right', display: 'flex'}}>
{user?.role !== 3 && (
<Box sx={{ float: 'right', display: 'flex' }}>
{user?.role !== 3 && (
<Grid item xs={6} sm={6}>
<Button
variant="contained"
color="secondary"
startIcon={<EditIcon />}
href={`/${locale}/project/${project_id}/edit`}
sx={{ fontSize: "0.75rem", py: 1, marginRight: "2rem"}}
sx={{ fontSize: '0.75rem', py: 1, marginRight: '2rem' }}
>
{t("edit_project")}
{t('edit_project')}
</Button>
</Grid>
)}
Expand All @@ -135,12 +135,12 @@ const ProjectDetailsPage: React.FC<ProjectDetailsPageProps> = ({
color="secondary"
startIcon={<GroupIcon />}
href={`/${locale}/project/${project_id}/groups`}
sx={{ fontSize: "0.75rem", py: 1 }}
sx={{ fontSize: '0.75rem', py: 1 }}
>
{t("groups")}
{t('groups')}
</Button>
</Grid>
</div>
</Box>
</Grid>
</Grid>
<Divider style={{ marginBottom: "1rem" }} />
Expand Down

0 comments on commit cec10e5

Please sign in to comment.