Skip to content

Commit 92002b7

Browse files
💄 style: Fix FormModal custom footer
1 parent 3b3a865 commit 92002b7

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/FormModal/FormModal.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ const FormModal = memo<FormModalProps>(
9696
className={cx(s.form, formClassName)}
9797
clearOnDestroy={destroyOnClose}
9898
footer={
99-
footer || (
100-
<Flexbox
101-
align={'center'}
102-
className={cx(s.footer, footerClassName)}
103-
gap={8}
104-
horizontal
105-
>
99+
<Flexbox align={'center'} className={cx(s.footer, footerClassName)} gap={8} horizontal>
100+
{footer || (
106101
<Button
107102
block
108103
htmlType="submit"
@@ -117,8 +112,8 @@ const FormModal = memo<FormModalProps>(
117112
>
118113
{submitText || 'Submit'}
119114
</Button>
120-
</Flexbox>
121-
)
115+
)}
116+
</Flexbox>
122117
}
123118
gap={gap || (variant === 'borderless' ? 24 : gap)}
124119
onFinish={onFinish}

0 commit comments

Comments
 (0)