File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/web/components/layout Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ interface DividerComponentProps {
14
14
$margin : string ;
15
15
}
16
16
17
- interface DividerProps extends LayoutProps {
17
+ export interface DividerProps extends LayoutProps {
18
18
flex ?: string ;
19
19
margin ?: string ;
20
20
}
@@ -45,7 +45,7 @@ const DividerContainer = styled(Layout)`
45
45
46
46
DividerContainer . displayName = 'DividerContainer' ;
47
47
48
- const Divider : React . FC < DividerProps > = ( {
48
+ const Divider = ( {
49
49
margin = DEFAULT_MARGIN ,
50
50
grow,
51
51
flex,
Original file line number Diff line number Diff line change 3
3
* SPDX-License-Identifier: AGPL-3.0-or-later
4
4
*/
5
5
6
- import Divider from 'web/components/layout/Divider' ;
6
+ import Divider , { DividerProps } from 'web/components/layout/Divider' ;
7
7
import withComponentDefaults from 'web/utils/withComponentDefaults' ;
8
8
9
- const IconDivider = withComponentDefaults ( { margin : '5px' } ) ( Divider ) ;
9
+ const IconDivider = withComponentDefaults < DividerProps > ( { margin : '5px' } ) (
10
+ Divider ,
11
+ ) ;
10
12
11
13
IconDivider . displayName = 'IconDivider' ;
12
14
You can’t perform that action at this time.
0 commit comments