Skip to content

Commit

Permalink
refactor: Use single hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Apr 5, 2021
1 parent 9cd25c7 commit b64f02f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { detectFlexGapSupported } from '../../_util/styleChecker';
import { detectFlexGapSupported } from '../styleChecker';

export default () => {
const [flexible, setFlexible] = React.useState(false);
Expand Down
2 changes: 1 addition & 1 deletion components/grid/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ResponsiveObserve, {
ScreenMap,
responsiveArray,
} from '../_util/responsiveObserve';
import useFlexGapSupport from './hooks/useFlexGapSupport';
import useFlexGapSupport from '../_util/hooks/useFlexGapSupport';

const RowAligns = tuple('top', 'middle', 'bottom', 'stretch');
const RowJustify = tuple('start', 'end', 'center', 'space-around', 'space-between');
Expand Down
2 changes: 1 addition & 1 deletion components/space/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import toArray from 'rc-util/lib/Children/toArray';
import { ConfigContext } from '../config-provider';
import { SizeType } from '../config-provider/SizeContext';
import Item from './Item';
import useFlexGapSupport from '../grid/hooks/useFlexGapSupport';
import useFlexGapSupport from '../_util/hooks/useFlexGapSupport';

export const SpaceContext = React.createContext({
latestIndex: 0,
Expand Down

0 comments on commit b64f02f

Please sign in to comment.