File tree 4 files changed +10
-16
lines changed
4 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ import styled, { css } from 'styled-components';
3
3
4
4
import { createHatchedBackground } from '../common' ;
5
5
import useControlledOrUncontrolled from '../common/hooks/useControlledOrUncontrolled' ;
6
- import { noOp } from '../common/utils' ;
7
- import { StyledMenuListItem } from '../MenuList/MenuList' ;
8
- import { StyledScrollView } from '../ScrollView/ScrollView' ;
9
6
import {
10
7
LabelText ,
11
8
size ,
12
9
StyledInput ,
13
10
StyledLabel
14
- } from '../SwitchBase/SwitchBase' ;
11
+ } from '../common/SwitchBase' ;
12
+ import { noOp } from '../common/utils' ;
13
+ import { StyledMenuListItem } from '../MenuList/MenuList' ;
14
+ import { StyledScrollView } from '../ScrollView/ScrollView' ;
15
15
import { CommonThemeProps } from '../types' ;
16
16
17
17
type CheckboxProps = {
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import React, { forwardRef } from 'react';
2
2
import styled , { css , CSSProperties } from 'styled-components' ;
3
3
4
4
import { createFlatBoxStyles } from '../common' ;
5
- import { StyledMenuListItem } from '../MenuList/MenuList' ;
6
- import { StyledScrollView } from '../ScrollView/ScrollView' ;
7
5
import {
8
6
LabelText ,
9
7
size ,
10
8
StyledInput ,
11
9
StyledLabel
12
- } from '../SwitchBase/SwitchBase' ;
10
+ } from '../common/SwitchBase' ;
11
+ import { StyledMenuListItem } from '../MenuList/MenuList' ;
12
+ import { StyledScrollView } from '../ScrollView/ScrollView' ;
13
13
import { CommonStyledProps } from '../types' ;
14
14
15
15
type RadioVariant = 'default' | 'flat' | 'menu' ;
Original file line number Diff line number Diff line change 1
1
import styled , { css } from 'styled-components' ;
2
2
3
- import { createDisabledTextStyles , focusOutline } from '../common ' ;
3
+ import { createDisabledTextStyles , focusOutline } from '.' ;
4
4
import { StyledMenuListItem } from '../MenuList/MenuList' ;
5
5
6
6
export const size = 20 ;
Original file line number Diff line number Diff line change @@ -36,10 +36,7 @@ describe('useForkRef', () => {
36
36
} ) ;
37
37
38
38
it ( 'forks if only one of the branches requires a ref' , ( ) => {
39
- const Component = React . forwardRef < HTMLDivElement > ( function Component (
40
- _ ,
41
- ref
42
- ) {
39
+ const Component = React . forwardRef < HTMLDivElement > ( ( _ , ref ) => {
43
40
const [ hasRef , setHasRef ] = useState ( false ) ;
44
41
const handleOwnRef = useCallback ( ( ) => setHasRef ( true ) , [ ] ) ;
45
42
const handleRef = useForkRef ( handleOwnRef , ref ) ;
@@ -60,10 +57,7 @@ describe('useForkRef', () => {
60
57
children : React . ReactElement ;
61
58
} ;
62
59
63
- const Outer = React . forwardRef < null , OuterProps > ( function Outer (
64
- props ,
65
- ref
66
- ) {
60
+ const Outer = React . forwardRef < null , OuterProps > ( ( props , ref ) => {
67
61
const { children } = props ;
68
62
69
63
// TODO: Fix this test as reading ref from children is not allowed so not available on React types
You can’t perform that action at this time.
0 commit comments