Skip to content

Commit

Permalink
added a grid container to bottom of contact form with a height equiva…
Browse files Browse the repository at this point in the history
…lent to the footer to compensate for a fixed positioned footer that blocks visibility of portions of the contact form, namely submit button
  • Loading branch information
edwinjue committed Sep 7, 2022
1 parent c0a2caf commit 595319c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/components/contact/ContactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down Expand Up @@ -39,6 +46,8 @@ const toastEmitterSettings = {
};

const ContactForm = () => {
const classes = useStyles();

const dispatch = useDispatch();

// mapStateToProps equivalent.
Expand Down Expand Up @@ -251,6 +260,7 @@ const ContactForm = () => {
Submit
</Button>
</Grid>
<Grid container direction="column" alignItems="center" justifyContent="center" className={classes.footer} />
</Grid>
</form>
</Container>
Expand Down

0 comments on commit 595319c

Please sign in to comment.