File tree Expand file tree Collapse file tree 4 files changed +10
-16
lines changed Expand file tree Collapse file tree 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';
33
44import { createHatchedBackground } from '../common' ;
55import useControlledOrUncontrolled from '../common/hooks/useControlledOrUncontrolled' ;
6- import { noOp } from '../common/utils' ;
7- import { StyledMenuListItem } from '../MenuList/MenuList' ;
8- import { StyledScrollView } from '../ScrollView/ScrollView' ;
96import {
107 LabelText ,
118 size ,
129 StyledInput ,
1310 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' ;
1515import { CommonThemeProps } from '../types' ;
1616
1717type CheckboxProps = {
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import React, { forwardRef } from 'react';
22import styled , { css , CSSProperties } from 'styled-components' ;
33
44import { createFlatBoxStyles } from '../common' ;
5- import { StyledMenuListItem } from '../MenuList/MenuList' ;
6- import { StyledScrollView } from '../ScrollView/ScrollView' ;
75import {
86 LabelText ,
97 size ,
108 StyledInput ,
119 StyledLabel
12- } from '../SwitchBase/SwitchBase' ;
10+ } from '../common/SwitchBase' ;
11+ import { StyledMenuListItem } from '../MenuList/MenuList' ;
12+ import { StyledScrollView } from '../ScrollView/ScrollView' ;
1313import { CommonStyledProps } from '../types' ;
1414
1515type RadioVariant = 'default' | 'flat' | 'menu' ;
Original file line number Diff line number Diff line change 11import styled , { css } from 'styled-components' ;
22
3- import { createDisabledTextStyles , focusOutline } from '../common ' ;
3+ import { createDisabledTextStyles , focusOutline } from '.' ;
44import { StyledMenuListItem } from '../MenuList/MenuList' ;
55
66export const size = 20 ;
Original file line number Diff line number Diff line change @@ -36,10 +36,7 @@ describe('useForkRef', () => {
3636 } ) ;
3737
3838 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 ) => {
4340 const [ hasRef , setHasRef ] = useState ( false ) ;
4441 const handleOwnRef = useCallback ( ( ) => setHasRef ( true ) , [ ] ) ;
4542 const handleRef = useForkRef ( handleOwnRef , ref ) ;
@@ -60,10 +57,7 @@ describe('useForkRef', () => {
6057 children : React . ReactElement ;
6158 } ;
6259
63- const Outer = React . forwardRef < null , OuterProps > ( function Outer (
64- props ,
65- ref
66- ) {
60+ const Outer = React . forwardRef < null , OuterProps > ( ( props , ref ) => {
6761 const { children } = props ;
6862
6963 // 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