mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
fix prev property error on div
This commit is contained in:
parent
dfc1fd6cc0
commit
44f1d14d8d
@ -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
|
||||
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user