Skip to content

Commit

Permalink
remove: token info (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh authored Aug 17, 2023
1 parent 5772abf commit e037075
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 694 deletions.
13 changes: 0 additions & 13 deletions src/components/SEO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,4 @@ const SEO = ({ title, description }: SEOProps) => {
)
}

/**
* /swap/bnb/knc-to-usdt vs /swap/bnb/usdt-to-knc has same content
* => add canonical link that specify which is main page, => /swap/bnb/knc-to-usdt
*/
export const SEOSwap = ({ canonicalUrl }: { canonicalUrl: string }) => {
if (!canonicalUrl) return null
return (
<Helmet>
<link href={canonicalUrl} rel="canonical"></link>
</Helmet>
)
}

export default SEO
24 changes: 0 additions & 24 deletions src/components/swapv2/SwapSettingsPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ import useTheme from 'hooks/useTheme'
import {
useShowKyberAIBanner,
useShowLiveChart,
useShowTokenInfo,
useShowTradeRoutes,
useToggleKyberAIBanner,
useToggleLiveChart,
useToggleTokenInfo,
useToggleTradeRoutes,
} from 'state/user/hooks'

Expand Down Expand Up @@ -59,12 +57,10 @@ const SettingsPanel: React.FC<Props> = ({

const { mixpanelHandler } = useMixpanel()
const isShowTradeRoutes = useShowTradeRoutes()
const isShowTokenInfo = useShowTokenInfo()
const isShowLiveChart = useShowLiveChart()
const isShowKyberAIBanner = useShowKyberAIBanner()
const toggleLiveChart = useToggleLiveChart()
const toggleTradeRoutes = useToggleTradeRoutes()
const toggleTokenInfo = useToggleTokenInfo()
const toggleKyberAIBanner = useToggleKyberAIBanner()

const handleToggleLiveChart = () => {
Expand Down Expand Up @@ -172,26 +168,6 @@ const SettingsPanel: React.FC<Props> = ({
</RowFixed>
<Toggle isActive={isShowTradeRoutes} toggle={handleToggleTradeRoute} />
</RowBetween>
{isSwapPage && (
<RowBetween>
<RowFixed>
<TextDashed fontSize={12} fontWeight={400} color={theme.subText} underlineColor={theme.border}>
<MouseoverTooltip text={<Trans>Turn on to display token info</Trans>} placement="right">
<Trans>Token Info</Trans>
</MouseoverTooltip>
</TextDashed>
</RowFixed>
<Toggle
isActive={isShowTokenInfo}
toggle={() => {
mixpanelHandler(MIXPANEL_TYPE.SWAP_DISPLAY_SETTING_CLICK, {
display_setting: isShowTokenInfo ? 'Token Info Off' : 'Token Info On',
})
toggleTokenInfo()
}}
/>
</RowBetween>
)}
</>
)}
</AutoColumn>
Expand Down
289 changes: 0 additions & 289 deletions src/components/swapv2/TokenInfoV2/SingleTokenInfo.tsx

This file was deleted.

Loading

0 comments on commit e037075

Please sign in to comment.