We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b3a865 commit 92002b7Copy full SHA for 92002b7
src/FormModal/FormModal.tsx
@@ -96,13 +96,8 @@ const FormModal = memo<FormModalProps>(
96
className={cx(s.form, formClassName)}
97
clearOnDestroy={destroyOnClose}
98
footer={
99
- footer || (
100
- <Flexbox
101
- align={'center'}
102
- className={cx(s.footer, footerClassName)}
103
- gap={8}
104
- horizontal
105
- >
+ <Flexbox align={'center'} className={cx(s.footer, footerClassName)} gap={8} horizontal>
+ {footer || (
106
<Button
107
block
108
htmlType="submit"
@@ -117,8 +112,8 @@ const FormModal = memo<FormModalProps>(
117
112
>
118
113
{submitText || 'Submit'}
119
114
</Button>
120
- </Flexbox>
121
- )
115
+ )}
116
+ </Flexbox>
122
}
123
gap={gap || (variant === 'borderless' ? 24 : gap)}
124
onFinish={onFinish}
0 commit comments