Skip to content

Commit

Permalink
Remove unused import and update button functionality (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon authored Dec 12, 2023
1 parent 4ed1fec commit 33a4982
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions apps/index/components/HomeDemo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'
import {typeformAtom} from '@/store/core'
import {ArrowUpward, PlayArrow, Replay} from '@mui/icons-material'
import {ArrowUpward, Replay} from '@mui/icons-material'
import {LoadingButton} from '@mui/lab'
import {
Box,
Expand All @@ -13,7 +13,6 @@ import {
Slide,
Stack,
TextField,
Tooltip,
Typography,
alpha,
} from '@mui/material'
Expand Down Expand Up @@ -64,7 +63,7 @@ async function apiFetcher(
}

const HomeDemo: FC = () => {
const [typefrom] = useAtom(typeformAtom)
const [typeform] = useAtom(typeformAtom)
const [fromChain, setFromChain] = useState<string>()
const [toChain, setToChain] = useState<string>()
const [fromAmount, setFromAmount] = useState<string>()
Expand Down Expand Up @@ -147,13 +146,21 @@ const HomeDemo: FC = () => {
justifyContent="center"
mt={3}
>
<Tooltip title="Currently in closed beta, will be available soon">
{/* <Tooltip title="Currently in closed beta, will be available soon">
<span>
<Button disabled startIcon={<PlayArrow />}>
Execute
</Button>
</span>
</Tooltip>
</Tooltip> */}
<Button
onClick={() => {
typeform.waitlist.open()
}}
variant="contained"
>
Join Waitlist
</Button>
<Button
onClick={() => {
setMessage('')
Expand All @@ -171,7 +178,7 @@ const HomeDemo: FC = () => {
component="span"
sx={{cursor: 'pointer'}}
onClick={() => {
typefrom.survey.open()
typeform.survey.open()
}}
>
taking a quick survey
Expand Down

3 comments on commit 33a4982

@vercel
Copy link

@vercel vercel bot commented on 33a4982 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

analytics – ./apps/analytics

analytics-phala.vercel.app
analytics-plum.vercel.app
analytics-git-main-phala.vercel.app
analytics.phala.network

@vercel
Copy link

@vercel vercel bot commented on 33a4982 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

subbridge – ./apps/subbridge

subbridge-phala.vercel.app
subbridge-git-main-phala.vercel.app
subbridge.vercel.app
subbridge.io
www.subbridge.io

@vercel
Copy link

@vercel vercel bot commented on 33a4982 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

index – ./apps/index

index.phala.network
index-phala.vercel.app
phala-index.vercel.app
index-git-main-phala.vercel.app

Please sign in to comment.