Skip to content

Commit

Permalink
chore: set the correct order of imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Apr 21, 2024
1 parent dba61b6 commit cbe5d41
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/components/Bleed.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as React from 'react';

import { Box } from './Box';

import type { ResponsiveProp } from '../types';
import { negate } from '../utils';
import { Box } from './Box';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
Expand Down
7 changes: 4 additions & 3 deletions src/components/Columns.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as React from 'react';
import { Platform } from 'react-native';

import { Box } from './Box';
import { Column } from './Column';
import { FloatBox } from './FloatBox';

import {
useBreakpointComparators,
useDebugStyle,
Expand All @@ -9,9 +13,6 @@ import {
} from '../hooks';
import type { AxisX, AxisY, Breakpoint, Flex, ResponsiveProp, Space } from '../types';
import { flattenChildren, negate } from '../utils';
import { Box } from './Box';
import { Column } from './Column';
import { FloatBox } from './FloatBox';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
Expand Down
3 changes: 2 additions & 1 deletion src/components/FloatBox.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as React from 'react';
import { DimensionValue, StyleSheet } from 'react-native';

import { Box } from './Box';

import { useResponsiveProp } from '../hooks';
import type { ResponsiveProp } from '../types';
import { Box } from './Box';

type BoxProps = React.ComponentProps<typeof Box>;

Expand Down
5 changes: 3 additions & 2 deletions src/components/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import * as React from 'react';
import { Platform, Text } from 'react-native';
import { createStyleSheet, UnistylesRuntime, useStyles } from 'react-native-unistyles';

import { Box } from './Box';
import { FloatBox } from './FloatBox';

import { useResponsiveProp, useSpacingHelpers } from '../hooks';
import type { ResponsiveProp } from '../types';
import { makeWithIndex } from '../utils';
import { Box } from './Box';
import { FloatBox } from './FloatBox';

export type GridProps = {
readonly gutter?: ResponsiveProp<number>;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Inline.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as React from 'react';

import { Box } from './Box';

import { useBreakpointComparators } from '../hooks';
import type { AxisX, AxisY, Breakpoint, ResponsiveProp, Space } from '../types';
import { Box } from './Box';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Inset.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as React from 'react';

import type { ResponsiveProp } from '../types';
import { Box } from './Box';

import type { ResponsiveProp } from '../types';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
| 'padding'
Expand Down
5 changes: 3 additions & 2 deletions src/components/Rows.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import * as React from 'react';

import type { AxisX, AxisY, Flex, ResponsiveProp, Space } from '../types';
import { flattenChildren } from '../utils';
import { Box } from './Box';
import { Row } from './Row';

import type { AxisX, AxisY, Flex, ResponsiveProp, Space } from '../types';
import { flattenChildren } from '../utils';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
'direction' | 'gap' | 'rowGap' | 'columnGap' | 'alignX' | 'alignY'
Expand Down
3 changes: 2 additions & 1 deletion src/components/Stack.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as React from 'react';

import { Box } from './Box';

import { useResponsiveProp } from '../hooks';
import type { AxisX, AxisY, ResponsiveProp } from '../types';
import { flattenChildren, intersperse } from '../utils';
import { Box } from './Box';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Tiles.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as React from 'react';

import { Box } from './Box';

import { useResponsiveProp } from '../hooks';
import type { AxisY, ResponsiveProp, Space } from '../types';
import { makeWithIndex, splitEvery } from '../utils';
import { Box } from './Box';

type BoxProps = Omit<
React.ComponentProps<typeof Box>,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-empty-interface */
import { UnistylesBreakpoints } from 'react-native-unistyles';

export interface StacksBreakpoints {}
Expand Down

0 comments on commit cbe5d41

Please sign in to comment.