Skip to content

Commit

Permalink
feat: bump minor release. Add block option for submit btn
Browse files Browse the repository at this point in the history
  • Loading branch information
jlison committed Aug 24, 2019
1 parent f40a7e2 commit cf117b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/SubmitBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import {DefaultInputProps} from '../interfaces/FormConfig';
/** Submit button */
export default (props: DefaultInputProps) => {
const {
elementConfig: {className, col, placeholder},
elementConfig: {block, className, col, placeholder},
} = props;
const {t} = useTranslation();

return (
<Row className="justify-content-center">
<Col md={col || 6}>
<Button className={`${className} gradient mt-4`} type="submit" block>
<Button
className={`${className} gradient mt-4`}
type="submit"
block={block || false}>
{t(placeholder)}
</Button>
</Col>
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/FormConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface FormConfig {
pattern?: RegExp;
validate?: any;
isMulti?: boolean;
block?: boolean;
}

export interface DefaultInputProps
Expand Down

0 comments on commit cf117b5

Please sign in to comment.