Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
fix: chatbot cta
Browse files Browse the repository at this point in the history
  • Loading branch information
aprets committed Apr 16, 2022
1 parent 396ac7f commit e9bb7d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions next/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import {AppProps} from 'next/app'
import Head from 'next/head'
import {MantineProvider} from '@mantine/core'
import {useState} from 'react'
import Navbar from '../components/Navbar'
import {theme} from '../lib/theme'

import '../global.css'

import ChatBot from '../components/Chatbot/Chatbot'
import ChatBotPopup from '../components/Chatbot'

export default function App(props: AppProps) {
const {Component, pageProps} = props

const [chatbotPopupOpened, setChatbotPopupOpened] = useState(false)

return (
<>
<Head>
Expand All @@ -23,9 +26,9 @@ export default function App(props: AppProps) {
withNormalizeCSS
theme={theme}
>
<Navbar />
<ChatBot />
<Navbar helpMeChooseCallback={() => { setChatbotPopupOpened(true) }} />
<Component {...pageProps} />
<ChatBotPopup isOpened={chatbotPopupOpened} setOpened={setChatbotPopupOpened} />
</MantineProvider>
</>
)
Expand Down

0 comments on commit e9bb7d6

Please sign in to comment.