From 597df17735ba37c1777947b96131183d1f6c7d34 Mon Sep 17 00:00:00 2001 From: rlacko <rlacko@sch.bme.hu> Date: Sat, 25 Jan 2020 22:57:20 +0100 Subject: [PATCH] #62 hide button after deadline --- src/components/pages/Profile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/pages/Profile.js b/src/components/pages/Profile.js index 1abe49b..719a4b9 100644 --- a/src/components/pages/Profile.js +++ b/src/components/pages/Profile.js @@ -81,7 +81,7 @@ class Profile extends Component { } <Divider horizontal /> - {canEdit ? + {canEdit ? <Form.TextArea rows={10} name='motivationExercise' @@ -195,6 +195,7 @@ class Profile extends Component { checked={signed} readOnly={!canEdit} /> + {canEdit ? <Form.Button primary style={{ marginBottom: '10em' }} @@ -204,6 +205,7 @@ class Profile extends Component { > MentĂŠs </Form.Button> + : '' } </Form> </Container> ); -- GitLab