Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 0a48031

Browse files
committed
feat: Conditional bottom padding for form section
1 parent edfe6f7 commit 0a48031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containers/submit/form-section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const FormSection = ({ state, fields, handleChange, errors, message, setS
1818
required={field.required}
1919
error={errors && field && errors[field.name] && errors[field.name]}
2020
/>
21-
<Box pb={4}>
21+
<Box pb={field.options.length ? 4 : 0}>
2222
{field.options.map((option) => (
2323
<Flex pb={3} alignItems="center" key={`radio-${field.name}-${option.value}`}>
2424
<input

0 commit comments

Comments
 (0)