Created
March 7, 2020 01:40
-
-
Save lucas-lm/043d24538052fdb9e55cc752c45a66a8 to your computer and use it in GitHub Desktop.
Revisions
-
lucas-lm created this gist
Mar 7, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import React from 'react' import Button from '@material-ui/core/Button' import { useFormikContext } from 'formik' const SubmitButton = props => { const { isSubmitting } = useFormikContext() const { type, ...rest } = props return <Button type='submit' disabled={isSubmitting} {...rest}/> } export default SubmitButton