Files
freeCodeCamp/client/src/components/formHelpers/BlockSaveButton.js
2018-09-30 12:42:40 +01:00

19 lines
430 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@freecodecamp/react-bootstrap';
function BlockSaveButton(props) {
return (
<Button block={true} bsStyle='primary' {...props} type='submit'>
{props.children || 'Save'}
</Button>
);
}
BlockSaveButton.displayName = 'BlockSaveButton';
BlockSaveButton.propTypes = {
children: PropTypes.any
};
export default BlockSaveButton;