Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso committed Feb 26, 2025
1 parent 7160998 commit de19838
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 305 deletions.
1 change: 1 addition & 0 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'wp-mediaelement';
* Internal dependencies
*/
import 'wcpay/data';
import 'multi-currency/data';
import './style.scss';
import ConnectAccountPage from 'connect-account-page';
import DepositsPage from 'deposits';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { Modal } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useStoreSettings } from 'multi-currency/data';
import { useStoreSettings } from 'multi-currency/data/hooks';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion includes/multi-currency/client/interface/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export { useSettings, useMultiCurrency } from 'wcpay/data/settings/hooks';
/**
* Dependencies from MCCY to WooPayments.
*/
export { useCurrencies, useEnabledCurrencies } from 'multi-currency/data';
export { useCurrencies, useEnabledCurrencies } from 'multi-currency/data/hooks';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
useCurrencies,
useDefaultCurrency,
useEnabledCurrencies,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';

import EnabledCurrenciesList from './list';
import EnabledCurrenciesListItem from './list-item';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
useAvailableCurrencies,
useEnabledCurrencies,
useDefaultCurrency,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';
import EnabledCurrenciesModalCheckboxList from './modal-checkbox-list';
import EnabledCurrenciesModalCheckbox from './modal-checkbox';
import { ConfirmationModal } from 'multi-currency/interface/components';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { createInterpolateElement } from '@wordpress/element';
*/
import './style.scss';

import { useStoreSettings } from 'multi-currency/data';
import { useStoreSettings } from 'multi-currency/data/hooks';
import {
LoadableBlock,
SettingsSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { render, screen, fireEvent } from '@testing-library/react';
/**
* Internal dependencies
*/
import { useStoreSettings } from 'multi-currency/data';
import { useStoreSettings } from 'multi-currency/data/hooks';
import StoreSettings from '..';

jest.mock( 'multi-currency/data', () => ( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
useCurrencySettings,
useEnabledCurrencies,
useStoreSettings,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';
import MultiCurrencySettingsContext from 'multi-currency/context';
import {
LoadableBlock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
useEnabledCurrencies,
useCurrencySettings,
useStoreSettings,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';

import MultiCurrencySettingsContext from 'multi-currency/context';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
useAvailableCurrencies,
useEnabledCurrencies,
useDefaultCurrency,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';

// eslint-disable-next-line max-len
import EnabledCurrenciesModalCheckboxList from 'multi-currency/settings/multi-currency/enabled-currencies-list/modal-checkbox-list';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
useAvailableCurrencies,
useDefaultCurrency,
useEnabledCurrencies,
} from 'multi-currency/data';
} from 'multi-currency/data/hooks';

import { recommendedCurrencyCodes } from '../constants';
import { __ } from '@wordpress/i18n';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { WizardTaskContext } from 'multi-currency/interface/functions';

import './index.scss';

import { useDefaultCurrency } from 'multi-currency/data';
import { useDefaultCurrency } from 'multi-currency/data/hooks';

const SetupComplete = () => {
const { isActive } = useContext( WizardTaskContext );
Expand Down
Loading

0 comments on commit de19838

Please sign in to comment.