Skip to content

Commit

Permalink
Fixed issue 211
Browse files Browse the repository at this point in the history
  • Loading branch information
alicendeh committed Apr 8, 2022
1 parent 1e2a7a4 commit 880d501
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions zubhub_frontend/zubhub/src/views/project_details/ProjectDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function ProjectDetails(props) {
</Typography>
</Link>
{project.creator.id === props.auth.id ? (
<>
<Grid container justify="flex-end">
<Link
className={classes.textDecorationNone}
to={`/projects/${project.id}/edit`}
Expand All @@ -219,7 +219,7 @@ function ProjectDetails(props) {
>
{t('projectDetails.project.delete.label')}
</CustomButton>
</>
</Grid>
) : (
<CustomButton
className={common_classes.marginLeft1em}
Expand All @@ -246,10 +246,7 @@ function ProjectDetails(props) {
xs={12}
sm={12}
md={12}
className={clsx(
classes.positionRelative,
classes.marginBottom1em,
)}
className={clsx(classes.positionRelative)}
>
<Grid
item
Expand Down Expand Up @@ -492,18 +489,16 @@ function ProjectDetails(props) {
>
<DialogTitle id="delete-project">
<Typography variant="h4">
{t('projectDetails.project.delete.dialog.primary')}
{t('projectDetails.project.delete.dialog.primary')}
</Typography>
</DialogTitle>
{delete_project_dialog_error !== null && (<Box
component="p"
className={classes.errorBox}
>
<Box component="span" className={classes.error}>
{delete_project_dialog_error}
{delete_project_dialog_error !== null && (
<Box component="p" className={classes.errorBox}>
<Box component="span" className={classes.error}>
{delete_project_dialog_error}
</Box>
</Box>

</Box>)}
)}
<DialogContent>
<Typography>
{t('projectDetails.project.delete.dialog.secondary')}
Expand Down

0 comments on commit 880d501

Please sign in to comment.