Skip to content

Commit cbe5d41

Browse files
committed
chore: set the correct order of imports
1 parent dba61b6 commit cbe5d41

File tree

10 files changed

+23
-13
lines changed

10 files changed

+23
-13
lines changed

src/components/Bleed.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as React from 'react';
22

3+
import { Box } from './Box';
4+
35
import type { ResponsiveProp } from '../types';
46
import { negate } from '../utils';
5-
import { Box } from './Box';
67

78
type BoxProps = Omit<
89
React.ComponentProps<typeof Box>,

src/components/Columns.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import * as React from 'react';
22
import { Platform } from 'react-native';
33

4+
import { Box } from './Box';
5+
import { Column } from './Column';
6+
import { FloatBox } from './FloatBox';
7+
48
import {
59
useBreakpointComparators,
610
useDebugStyle,
@@ -9,9 +13,6 @@ import {
913
} from '../hooks';
1014
import type { AxisX, AxisY, Breakpoint, Flex, ResponsiveProp, Space } from '../types';
1115
import { flattenChildren, negate } from '../utils';
12-
import { Box } from './Box';
13-
import { Column } from './Column';
14-
import { FloatBox } from './FloatBox';
1516

1617
type BoxProps = Omit<
1718
React.ComponentProps<typeof Box>,

src/components/FloatBox.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as React from 'react';
22
import { DimensionValue, StyleSheet } from 'react-native';
33

4+
import { Box } from './Box';
5+
46
import { useResponsiveProp } from '../hooks';
57
import type { ResponsiveProp } from '../types';
6-
import { Box } from './Box';
78

89
type BoxProps = React.ComponentProps<typeof Box>;
910

src/components/Grid.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import * as React from 'react';
22
import { Platform, Text } from 'react-native';
33
import { createStyleSheet, UnistylesRuntime, useStyles } from 'react-native-unistyles';
44

5+
import { Box } from './Box';
6+
import { FloatBox } from './FloatBox';
7+
58
import { useResponsiveProp, useSpacingHelpers } from '../hooks';
69
import type { ResponsiveProp } from '../types';
710
import { makeWithIndex } from '../utils';
8-
import { Box } from './Box';
9-
import { FloatBox } from './FloatBox';
1011

1112
export type GridProps = {
1213
readonly gutter?: ResponsiveProp<number>;

src/components/Inline.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as React from 'react';
22

3+
import { Box } from './Box';
4+
35
import { useBreakpointComparators } from '../hooks';
46
import type { AxisX, AxisY, Breakpoint, ResponsiveProp, Space } from '../types';
5-
import { Box } from './Box';
67

78
type BoxProps = Omit<
89
React.ComponentProps<typeof Box>,

src/components/Inset.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as React from 'react';
22

3-
import type { ResponsiveProp } from '../types';
43
import { Box } from './Box';
54

5+
import type { ResponsiveProp } from '../types';
6+
67
type BoxProps = Omit<
78
React.ComponentProps<typeof Box>,
89
| 'padding'

src/components/Rows.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import * as React from 'react';
22

3-
import type { AxisX, AxisY, Flex, ResponsiveProp, Space } from '../types';
4-
import { flattenChildren } from '../utils';
53
import { Box } from './Box';
64
import { Row } from './Row';
75

6+
import type { AxisX, AxisY, Flex, ResponsiveProp, Space } from '../types';
7+
import { flattenChildren } from '../utils';
8+
89
type BoxProps = Omit<
910
React.ComponentProps<typeof Box>,
1011
'direction' | 'gap' | 'rowGap' | 'columnGap' | 'alignX' | 'alignY'

src/components/Stack.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as React from 'react';
22

3+
import { Box } from './Box';
4+
35
import { useResponsiveProp } from '../hooks';
46
import type { AxisX, AxisY, ResponsiveProp } from '../types';
57
import { flattenChildren, intersperse } from '../utils';
6-
import { Box } from './Box';
78

89
type BoxProps = Omit<
910
React.ComponentProps<typeof Box>,

src/components/Tiles.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as React from 'react';
22

3+
import { Box } from './Box';
4+
35
import { useResponsiveProp } from '../hooks';
46
import type { AxisY, ResponsiveProp, Space } from '../types';
57
import { makeWithIndex, splitEvery } from '../utils';
6-
import { Box } from './Box';
78

89
type BoxProps = Omit<
910
React.ComponentProps<typeof Box>,

src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-empty-interface */
12
import { UnistylesBreakpoints } from 'react-native-unistyles';
23

34
export interface StacksBreakpoints {}

0 commit comments

Comments
 (0)