lbry-desktop/ui/component/common/form-components/submit.jsx

22 lines
454 B
React
Raw Permalink Normal View History

2018-03-26 23:32:43 +02:00
// @flow
import * as React from 'react';
import Button from 'component/button';
type Props = {
label: string,
disabled: boolean,
};
export class Submit extends React.PureComponent<Props> {
static defaultProps = {
label: 'Submit',
};
render() {
const { label, disabled, ...otherProps } = this.props;
2019-05-07 23:38:29 +02:00
return <Button button="primary" type="submit" label={label} disabled={disabled} {...otherProps} />;
2018-03-26 23:32:43 +02:00
}
}
export default Submit;