Skip to content

Commit

Permalink
swaps enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
unixvb committed Nov 27, 2024
1 parent c73bfd5 commit a4cb1fa
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/swap-form/swap-form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AppStatus, Asset, getQueryId} from 'rainbow-swap-sdk';
import {Asset, getQueryId} from 'rainbow-swap-sdk';
import {useCallback, useEffect, useMemo, useRef} from 'react';

import {AdsSwiperWithSuspense} from './ads-swiper/ads-swiper-with-suspense';
Expand All @@ -22,25 +22,21 @@ import {ContentContainer} from '../../shared/content-container/content-container
import {FormButton} from '../../shared/form-button/form-button';
import {useDispatch} from '../../store';
import {useIsAssetsInitializedSelector} from '../../store/initialized/runtime-selectors';
import {useAppStatusSelector} from '../../store/security/security-selectors';
import {useRiskToleranceSelector} from '../../store/settings/settings-selectors';
import {loadSwapRoutesActions} from '../../store/swap-routes/swap-routes-actions';
import {useSwapDisplayDataSelector} from '../../store/swap-routes/swap-routes-selectors';
import {toNano} from '../../utils/big-int.utils';
import {formatNumber} from '../../utils/format-number.utils';
import {swapAssets} from '../../utils/swap-assets.utils';

const appStatusMock: AppStatus = {
isSwapsEnabled: false,
message: 'some text'
};

export const SwapScreen = () => {
const walletAddress = useWalletAddress();
const inputRef = useRef<HTMLInputElement>(null);
const isMainButtonAvailable = useIsMainButtonAvailable();

const dispatch = useDispatch();
const appStatus = appStatusMock; //useAppStatusSelector();
const appStatus = useAppStatusSelector();
const isAssetsInitialized = useIsAssetsInitializedSelector();
const swapDisplayData = useSwapDisplayDataSelector();
const riskTolerance = useRiskToleranceSelector();
Expand Down

0 comments on commit a4cb1fa

Please sign in to comment.