fix prev property error on div

This commit is contained in:
Michael Schramm 2020-06-10 17:37:49 +02:00
parent dfc1fd6cc0
commit 44f1d14d8d
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- yes / no field fixed on admin and user view
- prev property error on div
### Security

View File

@ -14,7 +14,7 @@ interface Props {
prev: () => void
}
export const FormPage: React.FC<Props> = ({ page, design, next, ...props }) => {
export const FormPage: React.FC<Props> = ({ page, design, next, prev, ...props }) => {
if (!page.show) {
return null
}
@ -49,6 +49,7 @@ export const FormPage: React.FC<Props> = ({ page, design, next, ...props }) => {
display: 'flex',
}}
>
{prev && <div />}
{page.buttons.length > 0 && (
<Space>
{page.buttons.map((button, key) => {