Skip to content

Commit

Permalink
Remove swap
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ngcha0 committed Feb 21, 2023
1 parent 80f5801 commit 0bb4a0a
Show file tree
Hide file tree
Showing 79 changed files with 10 additions and 5,553 deletions.
1 change: 0 additions & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"@argent/stack-router": "^5.2.0",
"@argent/ui": "^5.2.0",
"@argent/x-multicall": "^5.2.0",
"@argent/x-swap": "^5.2.0",
"@extend-chrome/messages": "^1.2.2",
"@google/model-viewer": "^2.0.0",
"@mui/icons-material": "^5.3.1",
Expand Down
6 changes: 0 additions & 6 deletions packages/extension/src/ui/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import { SeedSettingsScreen } from "./features/settings/SeedSettingsScreen"
import { SettingsPrivacyStatementScreen } from "./features/settings/SettingsPrivacyStatementScreen"
import { SettingsScreen } from "./features/settings/SettingsScreen"
import { SmartContractDevelopmentScreen } from "./features/settings/SmartContractDevelopmentScreen"
import { NoSwap } from "./features/swap/NoSwap"
import { ReviewFeedbackScreen } from "./features/userReview/ReviewFeedbackScreen"
import { ReviewRatingScreen } from "./features/userReview/ReviewRatingScreen"
import { routes } from "./routes"
Expand Down Expand Up @@ -128,11 +127,6 @@ const walletRoutes = (
path={routes.accountCollections.path}
element={<AccountScreen tab="collections" />}
/>
<Route
presentation="push"
path={routes.swap.path}
element={<NoSwap />}
/>
<Route
presentation="push"
path={routes.accountActivity.path}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Token as SwapToken } from "@argent/x-swap"
import { BigNumberish } from "ethers"
import { useMemo } from "react"

Expand Down Expand Up @@ -78,7 +77,7 @@ export const usePriceAndTokenData = ARGENT_API_ENABLED
/** @returns individual price details for the token */

export const useTokenPriceDetails = (
token?: Token | TokenDetailsWithBalance | SwapToken,
token?: Token | TokenDetailsWithBalance,
usePriceAndTokenDataImpl = usePriceAndTokenData,
) => {
const { pricesData, tokenData } = usePriceAndTokenDataImpl()
Expand All @@ -103,7 +102,7 @@ export const useTokenPriceDetails = (
*/

export const useTokenUnitAmountToCurrencyValue = (
token?: Token | TokenDetailsWithBalance | SwapToken,
token?: Token | TokenDetailsWithBalance,
unitAmount?: BigNumberish,
usePriceAndTokenDataImpl = usePriceAndTokenData,
) => {
Expand All @@ -125,7 +124,7 @@ export const useTokenUnitAmountToCurrencyValue = (
*/

export const useTokenAmountToCurrencyValue = (
token?: Token | TokenDetailsWithBalance | SwapToken,
token?: Token | TokenDetailsWithBalance,
amount?: BigNumberish,
usePriceAndTokenDataImpl = usePriceAndTokenData,
) => {
Expand Down
3 changes: 0 additions & 3 deletions packages/extension/src/ui/features/accounts/AccountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { AccountCollections } from "../accountNfts/AccountCollections"
import { AccountTokens } from "../accountTokens/AccountTokens"
import { StatusMessageFullScreenContainer } from "../statusMessage/StatusMessageFullScreen"
import { useShouldShowFullScreenStatusMessage } from "../statusMessage/useShouldShowFullScreenStatusMessage"
import { NoSwap } from "../swap/NoSwap"
import { AccountContainer } from "./AccountContainer"
import { useAccount, useSelectedAccount } from "./accounts.state"
import { AccountScreenEmpty } from "./AccountScreenEmpty"
Expand Down Expand Up @@ -43,8 +42,6 @@ export const AccountScreen: FC<AccountScreenProps> = ({ tab }) => {
} else if (tab === "activity") {
scrollKey = "accounts/AccountActivityContainer"
body = <AccountActivityContainer account={account} />
} else if (tab === "swap") {
<NoSwap />
} else {
assertNever(tab)
}
Expand Down
23 changes: 0 additions & 23 deletions packages/extension/src/ui/features/swap/NoSwap.tsx

This file was deleted.

Loading

0 comments on commit 0bb4a0a

Please sign in to comment.