File tree Expand file tree Collapse file tree 3 files changed +11
-123
lines changed Expand file tree Collapse file tree 3 files changed +11
-123
lines changed Original file line number Diff line number Diff line change @@ -231,17 +231,17 @@ const Collapse = React.forwardRef(
231
231
onExit = { handleExit }
232
232
onExiting = { handleExiting }
233
233
>
234
- { ( state , innerProps ) => {
235
- return React . cloneElement ( children as any , {
234
+ { ( state , innerProps ) =>
235
+ React . cloneElement ( children as any , {
236
236
...innerProps ,
237
237
className : classNames (
238
238
className ,
239
239
( children as any ) . props . className ,
240
240
collapseStyles [ state ] ,
241
241
computedDimension === 'width' && 'width' ,
242
242
) ,
243
- } ) ;
244
- } }
243
+ } )
244
+ }
245
245
</ Transition >
246
246
) ;
247
247
} ,
Original file line number Diff line number Diff line change @@ -49,15 +49,13 @@ const Form: BsPrefixRefForwardingComponent<
49
49
...props
50
50
} ,
51
51
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
+ ) ,
61
59
) ;
62
60
63
61
Form . displayName = 'Form' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments