From 9d21075fd3930e0dcf877c88cbba7e0bda24804b Mon Sep 17 00:00:00 2001 From: Molly Carroll Date: Fri, 19 Mar 2021 10:35:58 -0500 Subject: [PATCH 1/2] fix edit form toggle --- src/components/Event.jsx | 10 +++++----- src/index.css | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/components/Event.jsx b/src/components/Event.jsx index 3a12a26..9df8c00 100644 --- a/src/components/Event.jsx +++ b/src/components/Event.jsx @@ -113,16 +113,16 @@ class Event extends Component { -
- + { this.state.editForm && + this.handleChange(e) } handleSubmit={ (e) => this.handleSubmit(e) } /> + } +
- - - ) } } diff --git a/src/index.css b/src/index.css index b7eda9b..1101332 100644 --- a/src/index.css +++ b/src/index.css @@ -368,8 +368,4 @@ nav { -webkit-transform: translateY(-10px); transform: translateY(-10px); } -} - -.edit-form { - visibility: hidden } \ No newline at end of file From 98f7d64a3d22c6dd7fa1b1c3569624e49b1acbb0 Mon Sep 17 00:00:00 2001 From: Molly Carroll Date: Fri, 19 Mar 2021 10:50:07 -0500 Subject: [PATCH 2/2] change editForm state to false on start --- src/components/Event.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Event.jsx b/src/components/Event.jsx index 9df8c00..16c591d 100644 --- a/src/components/Event.jsx +++ b/src/components/Event.jsx @@ -23,7 +23,7 @@ class Event extends Component { Category: '', Description: '', redirect: false, - editForm: true + editForm: false } }