1import React from 'react';
2import cn from 'classnames';
3import { useFormState } from 'react-final-form';
5import { ForwardButton } from 'components/Buttons';
7import { blinkIf } from 'components/Blinky';
9export default function SubmitButton({
10 as: As = ForwardButton,
26 (valid || (hasSubmitErrors && dirtySinceLastSubmit)) &&
28 !hasValidationErrors &&
33 className={cn('mt4', className)}
35 accessory={blinkIf(validating || submitting)}
36 onClick={handleSubmit}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list