From ae1c78f352dd730cde6fd0b98bc62db712be37f2 Mon Sep 17 00:00:00 2001 From: Phoebe Lartisant Date: Thu, 20 Jun 2024 10:17:48 +0200 Subject: [PATCH] update imports --- src/components/inputAmount/InputAmount.tsx | 11 +++++++---- src/store/helpers/index.ts | 2 ++ src/store/index.ts | 8 ++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/store/helpers/index.ts create mode 100644 src/store/index.ts diff --git a/src/components/inputAmount/InputAmount.tsx b/src/components/inputAmount/InputAmount.tsx index 65ed06a5..09031547 100644 --- a/src/components/inputAmount/InputAmount.tsx +++ b/src/components/inputAmount/InputAmount.tsx @@ -5,10 +5,13 @@ import useEvmToken from '../../custom/bridge/useEvmToken'; import { useServiceFee } from '../../custom/bridge/useServiceFee'; import { useUsdValue } from '../../custom/usdPrice/useFetchPrice'; import { TokenBalance, TokenOptions } from '../../pages'; -import { useGlobalStatusesStore } from '../../store/globalStatusesStore'; -import { useOperationStore } from '../../store/operationStore'; -import { useTokenStore } from '../../store/tokenStore'; + import Intl from '@/i18n/i18n'; +import { + useGlobalStatusesStore, + useOperationStore, + useTokenStore, +} from '@/store'; import { getAmountToReceive } from '@/utils/utils'; export interface InputAmountProps { @@ -19,7 +22,7 @@ export interface InputAmountProps { export const InputAmount = (props: InputAmountProps) => { const { isInput, massaTokens } = props; const { inputAmount, outputAmount, setAmounts, isMassaToEvm } = - useOperationStore.getState(); + useOperationStore(); const { serviceFee } = useServiceFee(); const { selectedToken } = useTokenStore(); diff --git a/src/store/helpers/index.ts b/src/store/helpers/index.ts new file mode 100644 index 00000000..3aa238d0 --- /dev/null +++ b/src/store/helpers/index.ts @@ -0,0 +1,2 @@ +export * from './massaProviders'; +export * from './tokenSymbol'; diff --git a/src/store/index.ts b/src/store/index.ts new file mode 100644 index 00000000..f263c963 --- /dev/null +++ b/src/store/index.ts @@ -0,0 +1,8 @@ +export * from './accountStore'; +export * from './configStore'; +export * from './globalStatusesStore'; +export * from './modeStore'; +export * from './operationStore'; +export * from './store'; +export * from './tokenStore'; +export * from './helpers/index';