From 595319c0e176fcf41d60d0b8d1d10e1e95f8614d Mon Sep 17 00:00:00 2001 From: Edwin J Date: Tue, 6 Sep 2022 21:51:53 -0700 Subject: [PATCH 1/4] added a grid container to bottom of contact form with a height equivalent to the footer to compensate for a fixed positioned footer that blocks visibility of portions of the contact form, namely submit button --- client/components/contact/ContactForm.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/components/contact/ContactForm.jsx b/client/components/contact/ContactForm.jsx index 158e69d32..12c01bc5d 100644 --- a/client/components/contact/ContactForm.jsx +++ b/client/components/contact/ContactForm.jsx @@ -9,9 +9,16 @@ import { Button, TextField, CircularProgress, + makeStyles, } from '@material-ui/core'; import 'react-toastify/dist/ReactToastify.css'; +const useStyles = makeStyles(theme => ({ + footer: { + height: theme.footer.height, + }, +})); + const initialFormValues = { firstName: '', lastName: '', @@ -39,6 +46,8 @@ const toastEmitterSettings = { }; const ContactForm = () => { + const classes = useStyles(); + const dispatch = useDispatch(); // mapStateToProps equivalent. @@ -251,6 +260,7 @@ const ContactForm = () => { Submit + From 6cceff1b74cdbac2c17c52cf7935e34b795caf9d Mon Sep 17 00:00:00 2001 From: Edwin J Date: Wed, 7 Sep 2022 18:25:34 -0700 Subject: [PATCH 2/4] removed client/components/contact/__tests__ directory --- .../__snapshots__/contactForm.test.js.snap | 299 ------------------ 1 file changed, 299 deletions(-) delete mode 100644 client/components/contact/__tests__/__snapshots__/contactForm.test.js.snap diff --git a/client/components/contact/__tests__/__snapshots__/contactForm.test.js.snap b/client/components/contact/__tests__/__snapshots__/contactForm.test.js.snap deleted file mode 100644 index 278215d6e..000000000 --- a/client/components/contact/__tests__/__snapshots__/contactForm.test.js.snap +++ /dev/null @@ -1,299 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ContactForm General should match snapshot 1`] = ` -
-
-
-
-
-
- -
- -
- -
-
-
-
- -
- -
- -
-
-
-
-
-
- -
- -
- -
-
-
-
- -
- -
-
-
-
-
- -
-