2
0

🐛 (lp) Fix real time airtable bot

Deleted it a long time ago without noticing 😂
This commit is contained in:
Baptiste Arnaud
2023-03-14 19:22:29 +01:00
parent d154c4e2f2
commit 67cb4b4878
2 changed files with 349 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { Flex, Stack, Heading, Text, Button, VStack } from '@chakra-ui/react'
import { Standard } from '@typebot.io/react'
import { ArrowRight } from 'assets/icons/ArrowRight'
import { HandDrawnArrow } from 'assets/illustrations/HandDrawnArrow'
import { PublicTypebot, Typebot } from 'models'
import Link from 'next/link'
import React, { useEffect, useRef, useState } from 'react'
@@ -32,9 +33,8 @@ export const RealTimeResults = () => {
}
const handleAnswer = ({ blockId }: { blockId: string }) => {
if ([nameBlockId, messageBlockId].includes(blockId)) {
refreshIframeContent()
}
if ([nameBlockId, messageBlockId].includes(blockId))
setTimeout(refreshIframeContent, 1000)
}
return (
@@ -110,6 +110,23 @@ export const RealTimeResults = () => {
backgroundColor: 'white',
}}
/>
<Flex
top="-60px"
right="-30px"
pos="absolute"
display={{ sm: 'none', xl: 'flex' }}
>
<Text fontFamily="'Indie Flower'" fontSize="2xl">
It&apos;s a real Airtable view!
</Text>
<HandDrawnArrow
transform="rotate(30deg)"
boxSize="100px"
top="15px"
right="-60px"
pos="absolute"
/>
</Flex>
</Stack>
</Stack>
</Flex>