Skip to content

Commit

Permalink
fix build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 16, 2023
1 parent 20cc289 commit 69904cc
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/pages/TrueSightV2/pages/RegisterWhitelist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ import { useRequestWhiteListMutation } from 'services/kyberAISubscription'
import styled from 'styled-components'

import { ButtonLight, ButtonPrimary } from 'components/Button'
import Column from 'components/Column'
import DownloadWalletModal from 'components/DownloadWalletModal'
import Row from 'components/Row'
import { APP_PATHS } from 'constants/index'
import { MIXPANEL_TYPE, useMixpanelKyberAI } from 'hooks/useMixpanel'
import useTheme from 'hooks/useTheme'
import SignInForm from 'pages/TrueSightV2/pages/RegisterWhitelist/SignInForm'
import SubscribeForm from 'pages/TrueSightV2/pages/RegisterWhitelist/SubscribeForm'
import WaitListForm from 'pages/TrueSightV2/pages/RegisterWhitelist/WaitListForm'
import VerifyCodeModal from 'pages/Verify/VerifyCodeModal'
import { ApplicationModal } from 'state/application/actions'
import { useOpenModal } from 'state/application/hooks'
import { useSessionInfo } from 'state/authen/hooks'
import { useIsWhiteListKyberAI } from 'state/user/hooks'
import { ButtonText } from 'theme'

const ConnectWalletButton = styled(ButtonLight)`
height: 36px;
Expand All @@ -41,7 +35,6 @@ export default function RegisterWhitelist({ showForm = true }: { showForm?: bool
referredByCode: '',
showVerifySuccess: false,
})
const openDownloadWalletModal = useOpenModal(ApplicationModal.DOWNLOAD_WALLET)

const showVerify = (email: string, referredByCode: string, showVerifySuccess: boolean) => {
setVerifyModalState({ isOpen: true, referredByCode, email, showVerifySuccess })
Expand Down Expand Up @@ -95,22 +88,6 @@ export default function RegisterWhitelist({ showForm = true }: { showForm?: bool
</ConnectWalletButton>
)

if (!isLogin)
return (
<Column gap="20px" alignItems="center" width="fit-content" paddingTop="20px">
<ConnectWalletButton onClick={() => signIn()}>
<Trans>Sign-In to Continue</Trans>
</ConnectWalletButton>
<Row color={theme.subText} fontSize="14px" gap="4px" width="fit-content">
<span>Don&apos;t have a wallet?</span>
<ButtonText color={theme.primary} onClick={openDownloadWalletModal}>
Get started here
</ButtonText>
</Row>
<DownloadWalletModal />
</Column>
)

if (!isLogin) return <SignInForm />

const btnGetStart = (
Expand Down

0 comments on commit 69904cc

Please sign in to comment.