diff --git a/src/components/SubmitBtn.tsx b/src/components/SubmitBtn.tsx index 1bbd700..f85cf2a 100644 --- a/src/components/SubmitBtn.tsx +++ b/src/components/SubmitBtn.tsx @@ -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 ( - diff --git a/src/interfaces/FormConfig.ts b/src/interfaces/FormConfig.ts index 63f50b1..23a1c46 100644 --- a/src/interfaces/FormConfig.ts +++ b/src/interfaces/FormConfig.ts @@ -37,6 +37,7 @@ export interface FormConfig { pattern?: RegExp; validate?: any; isMulti?: boolean; + block?: boolean; } export interface DefaultInputProps