Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Jun 20, 2024
1 parent 51841a1 commit ae1c78f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/inputAmount/InputAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/store/helpers/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './massaProviders';
export * from './tokenSymbol';
8 changes: 8 additions & 0 deletions src/store/index.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit ae1c78f

Please sign in to comment.