diff --git a/src/components/Button/LoadingButtonSpinner.tsx b/src/components/Button/LoadingButtonSpinner.tsx deleted file mode 100644 index 9cb659d487a..00000000000 --- a/src/components/Button/LoadingButtonSpinner.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { SpinnerSVG } from 'theme/components' - -const ButtonLoadingSpinner = (props: React.ComponentPropsWithoutRef<'svg'>) => ( - - - - -) - -export default ButtonLoadingSpinner diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index c210b0f671b..763cac844ab 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -6,8 +6,6 @@ import styled, { DefaultTheme, useTheme } from 'styled-components' import { RowBetween } from '../Row' -export { default as LoadingButtonSpinner } from './LoadingButtonSpinner' - type ButtonProps = Omit const ButtonOverlay = styled.div` diff --git a/src/components/swap/__snapshots__/SwapBuyFiatButton.test.tsx.snap b/src/components/swap/__snapshots__/SwapBuyFiatButton.test.tsx.snap deleted file mode 100644 index 7987707bfe4..00000000000 --- a/src/components/swap/__snapshots__/SwapBuyFiatButton.test.tsx.snap +++ /dev/null @@ -1,150 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`SwapBuyFiatButton.tsx matches base snapshot 1`] = ` - - .c1 { - box-sizing: border-box; - margin: 0; - min-width: 0; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - display: inline-block; - text-align: center; - line-height: inherit; - -webkit-text-decoration: none; - text-decoration: none; - font-size: inherit; - padding-left: 16px; - padding-right: 16px; - padding-top: 8px; - padding-bottom: 8px; - color: white; - background-color: primary; - border: 0; - border-radius: 4px; -} - -.c2 { - padding: 16px; - width: 100%; - line-height: 24px; - font-weight: 535; - text-align: center; - border-radius: 16px; - outline: none; - border: 1px solid transparent; - color: #222222; - -webkit-text-decoration: none; - text-decoration: none; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - cursor: pointer; - position: relative; - z-index: 1; - will-change: transform; - -webkit-transition: -webkit-transform 450ms ease; - -webkit-transition: transform 450ms ease; - transition: transform 450ms ease; - -webkit-transform: perspective(1px) translateZ(0); - -ms-transform: perspective(1px) translateZ(0); - transform: perspective(1px) translateZ(0); -} - -.c2:disabled { - opacity: 50%; - cursor: auto; - pointer-events: none; -} - -.c2 > * { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.c2 > a { - -webkit-text-decoration: none; - text-decoration: none; -} - -.c3 { - padding: 0; - width: -webkit-fit-content; - width: -moz-fit-content; - width: fit-content; - background: none; - -webkit-text-decoration: none; - text-decoration: none; -} - -.c3:focus { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.c3:hover { - opacity: 0.9; -} - -.c3:active { - -webkit-text-decoration: underline; - text-decoration: underline; -} - -.c3:disabled { - opacity: 50%; - cursor: auto; -} - -.c0 { - display: inline-block; - height: inherit; -} - -.c4 { - -webkit-animation: iAjNNh 125ms ease-in; - animation: iAjNNh 125ms ease-in; - color: #7D7D7D; - gap: 4px; - font-weight: 485; -} - -.c4:focus { - -webkit-text-decoration: none; - text-decoration: none; -} - -.c4:active { - -webkit-text-decoration: none; - text-decoration: none; -} - -
-
- -
-
-
-`; diff --git a/src/constants/tokens.ts b/src/constants/tokens.ts index f09ead0a1ed..494493013fd 100644 --- a/src/constants/tokens.ts +++ b/src/constants/tokens.ts @@ -96,13 +96,6 @@ export const DAI_OPTIMISM = new Token( 'DAI', 'Dai stable coin' ) -export const MATIC = new Token( - ChainId.MAINNET, - '0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0', - 18, - 'MATIC', - 'Polygon Matic' -) export const DAI_POLYGON = new Token( ChainId.POLYGON, '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063', diff --git a/src/hooks/useIsNotOriginCountry.ts b/src/hooks/useIsNotOriginCountry.ts deleted file mode 100644 index fe66625dcd3..00000000000 --- a/src/hooks/useIsNotOriginCountry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { useAppSelector } from 'state/hooks' -import { AppState } from 'state/reducer' - -export function useIsNotOriginCountry(country: string) { - const originCountry = useAppSelector((state: AppState) => state.user.originCountry) - return Boolean(originCountry) && originCountry !== country -}