1import React from 'react';
2import cn from 'classnames';
3import { useFormState } from 'react-final-form';
5import { ForwardButton } from 'components/Buttons';
6import Blinky from 'components/Blinky';
8export default function ContinueButton({ className, children, handleSubmit }) {
9 const { valid, validating, submitting } = useFormState({
10 subscription: { valid: true, validating: true, submitting: true },
13 const loading = validating || submitting;
18 className={cn('mt2', className)}
20 disabled={!valid || loading}
21 accessory={loading ? <Blinky /> : undefined}
22 onClick={handleSubmit}>
23 {children || 'Continue'}
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