diff --git a/features/flags.json b/features/flags.json index 26a583ab44..9a2dfea5d6 100644 --- a/features/flags.json +++ b/features/flags.json @@ -47,44 +47,44 @@ "createdBy": "OlegYak ", "createdAt": "2022-03-24T13:11:21.223Z", "development": { - "enabled": false, + "enabled": true, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T22:23:33.682Z" + "lastEditedAt": "2022-05-11T20:22:15.771Z" }, "testnet": { - "enabled": false, + "enabled": true, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T22:23:33.682Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "mainnet": { - "enabled": false, + "enabled": true, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T22:23:33.682Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "mainnet_STAGING": { - "enabled": false, + "enabled": true, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T22:23:33.682Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "testnet_STAGING": { - "enabled": false, + "enabled": true, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T22:23:33.682Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "testnet_NEARORG": { "enabled": false, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T18:07:50.110Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "mainnet_NEARORG": { "enabled": false, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T18:06:54.374Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" }, "mainnet_STAGING_NEARORG": { "enabled": false, "lastEditedBy": "esaminu", - "lastEditedAt": "2022-05-05T18:07:28.665Z" + "lastEditedAt": "2022-05-11T22:37:08.020Z" } }, "DONATE_TO_UKRAINE": { diff --git a/packages/frontend/src/components/Routing.js b/packages/frontend/src/components/Routing.js index e2ebf345c0..9d7b7c93f0 100644 --- a/packages/frontend/src/components/Routing.js +++ b/packages/frontend/src/components/Routing.js @@ -13,6 +13,7 @@ import styled, { ThemeProvider } from 'styled-components'; import { CREATE_IMPLICIT_ACCOUNT, IMPORT_ACCOUNT_WITH_LINK_V2, + CREATE_USN_CONTRACT } from '../../../../features'; import TwoFactorVerifyModal from '../components/accounts/two_factor/TwoFactorVerifyModal'; import { @@ -92,10 +93,9 @@ import { Profile } from './profile/Profile'; import { ReceiveContainerWrapper } from './receive-money/ReceiveContainerWrapper'; import { SendContainerWrapper } from './send/SendContainerWrapper'; import { StakingContainer } from './staking/StakingContainer'; +import SwapContainerWrapper from './Swap/SwapContainerWrapper'; import Terms from './terms/Terms'; import { SwapNear } from './wrap/SwapNear'; - - import '../index.css'; const { fetchTokenFiatValues, getTokenWhiteList } = tokenFiatValueActions; @@ -620,11 +620,12 @@ class Routing extends Component { path="/buy" component={BuyNear} /> + {CREATE_USN_CONTRACT && + path="/swap-usn" + component={SwapContainerWrapper} + />} dispatch(fetchMultiplier())}/>

- +

( {CREATE_USN_CONTRACT && Mixpanel.track('Click Swap button on nav')} > @@ -137,7 +137,7 @@ const NavLinks = () => ( /> - + } {DONATE_TO_UKRAINE && { dispatch(handleSwapByContractName(token.onChainFTMetadata?.symbol === 'NEAR' ? 'USN' : 'NEAR'))} /> diff --git a/packages/frontend/src/components/wallet/Wallet.js b/packages/frontend/src/components/wallet/Wallet.js index ae867fe93d..8757461350 100644 --- a/packages/frontend/src/components/wallet/Wallet.js +++ b/packages/frontend/src/components/wallet/Wallet.js @@ -423,14 +423,14 @@ const FungibleTokens = ({ {CREATE_USN_CONTRACT && (
- +
)}