Skip to content

Commit

Permalink
re added all submission page
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-arnout committed May 22, 2024
1 parent 269748e commit 39f011b
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions frontend/app/[locale]/components/ProjectDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,22 +154,37 @@ const ProjectDetailsPage: React.FC<ProjectDetailsPageProps> = ({
/>
))) : (
<>
{user?.role !== 3 && (
<Button
variant="contained"
color="secondary"
startIcon={<EditIcon />}
href={`/${locale}/project/${project_id}/edit`}
sx={{
fontSize: "0.75rem",
py: 1,
marginRight: 1,
marginY: 1,
}}
>
{t("edit_project")}
</Button>
)}
{user?.role !== 3 && (
<>
<Button
variant="contained"
color="secondary"
href={`/${locale}/project/${project_id}/submissions`}
sx={{
fontSize: "0.75rem",
py: 1,
marginRight: 1,
marginY: 1,
}}
>
{t("submissions")}
</Button>
<Button
variant="contained"
color="secondary"
startIcon={<EditIcon />}
href={`/${locale}/project/${project_id}/edit`}
sx={{
fontSize: "0.75rem",
py: 1,
marginRight: 1,
marginY: 1,
}}
>
{t("edit_project")}
</Button>
</>
)}
<Button
variant="contained"
color="secondary"
Expand Down

0 comments on commit 39f011b

Please sign in to comment.