Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

components: Remove wp-g2 imports from shortcut #31229

Merged
merged 1 commit into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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