mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-10 23:42:39 +08:00
♻️ Use Icon component instead of getImage() helper
This commit is contained in:
parent
157cf7d966
commit
4cbcdce75d
1 changed files with 5 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { useState } from '@wordpress/element';
|
import { useState } from '@wordpress/element';
|
||||||
import { Button } from '@wordpress/components';
|
import { Button, Icon } from '@wordpress/components';
|
||||||
|
import { useDispatch } from '@wordpress/data';
|
||||||
|
import { reusableBlock } from '@wordpress/icons';
|
||||||
|
|
||||||
import SettingsCard from '../../ReusableComponents/SettingsCard';
|
import SettingsCard from '../../ReusableComponents/SettingsCard';
|
||||||
import TodoSettingsBlock from '../../ReusableComponents/SettingsBlocks/TodoSettingsBlock';
|
import TodoSettingsBlock from '../../ReusableComponents/SettingsBlocks/TodoSettingsBlock';
|
||||||
import FeatureSettingsBlock from '../../ReusableComponents/SettingsBlocks/FeatureSettingsBlock';
|
import FeatureSettingsBlock from '../../ReusableComponents/SettingsBlocks/FeatureSettingsBlock';
|
||||||
import { TITLE_BADGE_POSITIVE } from '../../ReusableComponents/TitleBadge';
|
import { TITLE_BADGE_POSITIVE } from '../../ReusableComponents/TitleBadge';
|
||||||
import data from '../../../utils/data';
|
|
||||||
import { useMerchantInfo } from '../../../data/common/hooks';
|
import { useMerchantInfo } from '../../../data/common/hooks';
|
||||||
import { useDispatch } from '@wordpress/data';
|
|
||||||
import { STORE_NAME } from '../../../data/common';
|
import { STORE_NAME } from '../../../data/common';
|
||||||
|
|
||||||
const TabOverview = () => {
|
const TabOverview = () => {
|
||||||
|
@ -88,7 +89,7 @@ const TabOverview = () => {
|
||||||
onClick={ refreshHandler }
|
onClick={ refreshHandler }
|
||||||
disabled={ isRefreshing }
|
disabled={ isRefreshing }
|
||||||
>
|
>
|
||||||
{ data().getImage( 'icon-refresh.svg' ) }
|
<Icon icon={ reusableBlock } size={ 18 } />
|
||||||
{ isRefreshing
|
{ isRefreshing
|
||||||
? __(
|
? __(
|
||||||
'Refreshing…',
|
'Refreshing…',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue