Skip to content

Commit

Permalink
Merge multiple import statements from context into one
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 2, 2021
1 parent 159f7e1 commit 9747a6a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
7 changes: 5 additions & 2 deletions packages/components/src/divider/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ import type { Ref } from 'react';
/**
* Internal dependencies
*/
import { contextConnect, useContextSystem } from '../ui/context';
import type { WordPressComponentProps } from '../ui/context';
import {
contextConnect,
useContextSystem,
WordPressComponentProps,
} from '../ui/context';
import { DividerView } from './styles';
import type { Props } from './types';

Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/heading/hook.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* Internal dependencies
*/
import { useContextSystem } from '../ui/context';
import type { WordPressComponentProps } from '../ui/context';
import { useContextSystem, WordPressComponentProps } from '../ui/context';
import type { Props as TextProps } from '../text/types';
import { useText } from '../text';
import { getHeadingFontSize } from '../ui/utils/font-size';
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/spacer/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { css } from '@emotion/react';
/**
* Internal dependencies
*/
import { useContextSystem } from '../ui/context';
import type { WordPressComponentProps } from '../ui/context';
import { useContextSystem, WordPressComponentProps } from '../ui/context';
import { space } from '../ui/utils/space';
import { useCx } from '../utils/hooks/use-cx';
import type { Props } from './types';
Expand Down
7 changes: 5 additions & 2 deletions packages/components/src/ui/shortcut/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import type { Ref } from 'react';
/**
* Internal dependencies
*/
import { useContextSystem, contextConnect } from '../context';
import type { WordPressComponentProps } from '../context';
import {
useContextSystem,
contextConnect,
WordPressComponentProps,
} from '../context';
import { View } from '../../view';

export interface ShortcutDescription {
Expand Down

0 comments on commit 9747a6a

Please sign in to comment.