Skip to content

Commit

Permalink
Use extracted Button in external components.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecgan committed Jan 6, 2023
1 parent 3bc6fbb commit 1237f4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
*/
import { __ } from '@wordpress/i18n';
import { Component } from '@wordpress/element';
import {
Button,
Card,
CardBody,
CardFooter,
CardHeader,
} from '@wordpress/components';
import { Card, CardBody, CardFooter, CardHeader } from '@wordpress/components';
import { Button } from 'extracted/@wordpress/components';
import { isEqual, isFunction } from 'lodash';
import PropTypes from 'prop-types';
import { getIdsFromQuery, updateQueryString } from '@woocommerce/navigation';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Button, Dropdown } from '@wordpress/components';
import { Dropdown } from '@wordpress/components';
import { Button } from 'extracted/@wordpress/components';
import { focus } from '@wordpress/dom';
import classnames from 'classnames';
import { Component } from '@wordpress/element';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* External dependencies
*/
import { useRef, useLayoutEffect } from '@wordpress/element';
import { Button } from '@wordpress/components';
import { Button } from 'extracted/@wordpress/components';

export default function FinishButton( props ) {
const ref = useRef();
Expand Down
3 changes: 2 additions & 1 deletion js/src/external-components/wordpress/guide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
import classnames from 'classnames';
import { useState } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { Modal, KeyboardShortcuts, Button } from '@wordpress/components';
import { Modal, KeyboardShortcuts } from '@wordpress/components';
import { Button } from 'extracted/@wordpress/components';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion js/src/external-components/wordpress/guide/page-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
import { times } from 'lodash';
import { __, sprintf } from '@wordpress/i18n';
import { Button } from '@wordpress/components';
import { Button } from 'extracted/@wordpress/components';

/**
* Internal dependencies
Expand Down

0 comments on commit 1237f4d

Please sign in to comment.