Skip to content

Commit

Permalink
components: Remove wp-g2 imports from shortcut (#31229)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Apr 27, 2021
1 parent bdaebb2 commit e901798
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions packages/components/src/ui/shortcut/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
*/
// eslint-disable-next-line no-restricted-imports
import type { Ref } from 'react';
import type { ViewOwnProps } from '@wp-g2/create-styles';
import { useContextSystem, contextConnect } from '@wp-g2/context';

/**
* Internal dependencies
*/
import { useContextSystem, contextConnect } from '../context';
// eslint-disable-next-line no-duplicate-imports
import type { ViewOwnProps } from '../context';

export interface ShortcutDescription {
display: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

exports[`Shortcut should render a span with the shortcut text 1`] = `
<span
class="components-shortcut wp-components-shortcut ic-1x9nauu"
data-g2-c16t="true"
data-g2-component="Shortcut"
class="components-shortcut"
data-wp-c16t="true"
data-wp-component="Shortcut"
>
meta + P
</span>
Expand Down

0 comments on commit e901798

Please sign in to comment.