📦 Upgrade packages
This commit is contained in:
@ -11,30 +11,30 @@
|
||||
"lint": "eslint --fix -c ./.eslintrc.js \"./src/**/*.ts*\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@stripe/react-stripe-js": "1.13.0",
|
||||
"@stripe/stripe-js": "1.41.0",
|
||||
"@stripe/react-stripe-js": "1.14.1",
|
||||
"@stripe/stripe-js": "1.42.1",
|
||||
"prop-types": "15.8.1",
|
||||
"qs": "6.11.0",
|
||||
"react-frame-component": "5.2.3",
|
||||
"react-phone-number-input": "3.2.11",
|
||||
"react-scroll": "1.8.7",
|
||||
"react-phone-number-input": "3.2.12",
|
||||
"react-scroll": "1.8.8",
|
||||
"react-transition-group": "4.4.5",
|
||||
"resize-observer": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "18.11.0",
|
||||
"@types/node": "18.11.9",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react": "18.0.21",
|
||||
"@types/react": "18.0.24",
|
||||
"@types/react-phone-number-input": "3.0.14",
|
||||
"@types/react-scroll": "1.8.4",
|
||||
"@types/react-transition-group": "4.4.5",
|
||||
"@typescript-eslint/eslint-plugin": "5.40.0",
|
||||
"@typescript-eslint/parser": "5.40.0",
|
||||
"autoprefixer": "10.4.12",
|
||||
"@typescript-eslint/eslint-plugin": "5.42.0",
|
||||
"@typescript-eslint/parser": "5.42.0",
|
||||
"autoprefixer": "10.4.13",
|
||||
"baptistearno-tsup": "^0.1.0",
|
||||
"db": "workspace:*",
|
||||
"eslint": "8.25.0",
|
||||
"eslint-config-next": "12.3.1",
|
||||
"eslint": "8.26.0",
|
||||
"eslint-config-next": "13.0.1",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-react": "7.31.10",
|
||||
@ -43,7 +43,7 @@
|
||||
"prettier": "2.7.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"tailwindcss": "3.1.8",
|
||||
"tailwindcss": "3.2.1",
|
||||
"typescript": "4.8.4",
|
||||
"utils": "workspace:*"
|
||||
},
|
||||
|
@ -35,7 +35,7 @@ export const InputChatBlock = ({
|
||||
) => void
|
||||
onSkip: () => void
|
||||
}) => {
|
||||
const { typebot } = useTypebot()
|
||||
const { typebot, isLoading } = useTypebot()
|
||||
const { addAnswer } = useAnswers()
|
||||
const [answer, setAnswer] = useState<string>()
|
||||
const [isEditting, setIsEditting] = useState(false)
|
||||
@ -66,6 +66,8 @@ export const InputChatBlock = ({
|
||||
setIsEditting(true)
|
||||
}
|
||||
|
||||
if (isLoading) return null
|
||||
|
||||
if (answer) {
|
||||
const avatarUrl = typebot.theme.chat.guestAvatar?.url
|
||||
return (
|
||||
|
Reference in New Issue
Block a user