Skip to content

Commit

Permalink
remove video tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
hungdoansy committed Jul 7, 2023
1 parent bc77e4a commit 36cac5f
Showing 1 changed file with 30 additions and 76 deletions.
106 changes: 30 additions & 76 deletions src/pages/MyEarnings/ClassicElasticTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import { useMedia } from 'react-use'
import { Flex, Text } from 'rebass'

import { ReactComponent as DropdownSVG } from 'assets/svg/down.svg'
import { ReactComponent as TutorialIcon } from 'assets/svg/play_circle_outline.svg'
import { PoolClassicIcon, PoolElasticIcon } from 'components/Icons'
import Wallet from 'components/Icons/Wallet'
import { MouseoverTooltip } from 'components/Tooltip'
import Tutorial, { TutorialType } from 'components/Tutorial'
import { APP_PATHS, PROMM_ANALYTICS_URL } from 'constants/index'
import { ELASTIC_NOT_SUPPORTED, VERSION } from 'constants/v2'
import { useActiveWeb3React } from 'hooks'
Expand Down Expand Up @@ -280,36 +278,18 @@ function ClassicElasticTab() {

const renderHelperButtonsForMobile = () => {
return (
<>
<ExternalLink
style={{
display: 'inline-flex',
alignItems: 'center',
gap: '4px',
color: theme.subText,
fontSize: '14px',
}}
href={`${PROMM_ANALYTICS_URL[chainId]}/account/${account}`}
>
<Wallet size={20} />
</ExternalLink>

<Tutorial
type={tab === VERSION.ELASTIC ? TutorialType.ELASTIC_POOLS : TutorialType.CLASSIC_POOLS}
customIcon={
<Flex
sx={{ gap: '4px', cursor: 'pointer' }}
fontSize="14px"
alignItems="center"
fontWeight="500"
color={theme.subText}
role="button"
>
<TutorialIcon />
</Flex>
}
/>
</>
<ExternalLink
style={{
display: 'inline-flex',
alignItems: 'center',
gap: '4px',
color: theme.subText,
fontSize: '14px',
}}
href={`${PROMM_ANALYTICS_URL[chainId]}/account/${account}`}
>
<Wallet size={20} />
</ExternalLink>
)
}

Expand Down Expand Up @@ -406,52 +386,26 @@ function ClassicElasticTab() {

const renderHelperButtons = () => {
return (
<>
<ExternalLink
style={{
display: 'inline-flex',
alignItems: 'center',
gap: '4px',
color: theme.subText,
fontSize: '14px',
<ExternalLink
style={{
display: 'inline-flex',
alignItems: 'center',
gap: '4px',
color: theme.subText,
fontSize: '14px',
}}
href={`${PROMM_ANALYTICS_URL[chainId]}/account/${account}`}
>
<Wallet size={20} />
<Text
as="span"
sx={{
whiteSpace: 'nowrap',
}}
href={`${PROMM_ANALYTICS_URL[chainId]}/account/${account}`}
>
<Wallet size={20} />
<Text
as="span"
sx={{
whiteSpace: 'nowrap',
}}
>
<Trans>Wallet Analytics</Trans>
</Text>
</ExternalLink>

<Tutorial
type={tab === VERSION.ELASTIC ? TutorialType.ELASTIC_POOLS : TutorialType.CLASSIC_POOLS}
customIcon={
<Flex
sx={{ gap: '4px', cursor: 'pointer' }}
fontSize="14px"
alignItems="center"
fontWeight="500"
color={theme.subText}
role="button"
>
<TutorialIcon />
<Text
as="span"
sx={{
whiteSpace: 'nowrap',
}}
>
<Trans>Video Tutorial</Trans>
</Text>
</Flex>
}
/>
</>
<Trans>Wallet Analytics</Trans>
</Text>
</ExternalLink>
)
}

Expand Down

0 comments on commit 36cac5f

Please sign in to comment.