Skip to content

Commit 32fc702

Browse files
authored
chore: fix lint and remove unused usePopperMarginModifiers (react-bootstrap#5703)
1 parent 4039c11 commit 32fc702

File tree

3 files changed

+11
-123
lines changed

3 files changed

+11
-123
lines changed

src/Collapse.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,17 @@ const Collapse = React.forwardRef(
231231
onExit={handleExit}
232232
onExiting={handleExiting}
233233
>
234-
{(state, innerProps) => {
235-
return React.cloneElement(children as any, {
234+
{(state, innerProps) =>
235+
React.cloneElement(children as any, {
236236
...innerProps,
237237
className: classNames(
238238
className,
239239
(children as any).props.className,
240240
collapseStyles[state],
241241
computedDimension === 'width' && 'width',
242242
),
243-
});
244-
}}
243+
})
244+
}
245245
</Transition>
246246
);
247247
},

src/Form.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ const Form: BsPrefixRefForwardingComponent<
4949
...props
5050
},
5151
ref,
52-
) => {
53-
return (
54-
<Component
55-
{...props}
56-
ref={ref}
57-
className={classNames(className, validated && 'was-validated')}
58-
/>
59-
);
60-
},
52+
) => (
53+
<Component
54+
{...props}
55+
ref={ref}
56+
className={classNames(className, validated && 'was-validated')}
57+
/>
58+
),
6159
);
6260

6361
Form.displayName = 'Form';

src/usePopperMarginModifiers.tsx

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)