Skip to content

Commit

Permalink
👷 Remove maintenance page
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 14, 2022
1 parent 0e3ee9b commit cd24482
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions apps/builder/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { actions } from 'libs/kbar'
import { enableMocks } from 'mocks'
import { SupportBubble } from 'components/shared/SupportBubble'
import { WorkspaceContext } from 'contexts/WorkspaceContext'
import { MaintenancePage } from 'components/shared/MaintenancePage'

if (process.env.NEXT_PUBLIC_E2E_TEST === 'enabled') enableMocks()

Expand All @@ -33,30 +32,29 @@ const App = ({ Component, pageProps: { session, ...pageProps } }: AppProps) => {
}, [pathname])

const typebotId = query.typebotId?.toString()
return <MaintenancePage />
// return (
// <ChakraProvider theme={customTheme}>
// <KBarProvider actions={actions}>
// <SessionProvider session={session}>
// <UserContext>
// {typebotId ? (
// <TypebotContext typebotId={typebotId}>
// <WorkspaceContext>
// <Component />
// <SupportBubble />
// </WorkspaceContext>
// </TypebotContext>
// ) : (
// <WorkspaceContext>
// <Component {...pageProps} />
// <SupportBubble />
// </WorkspaceContext>
// )}
// </UserContext>
// </SessionProvider>
// </KBarProvider>
// </ChakraProvider>
// )
return (
<ChakraProvider theme={customTheme}>
<KBarProvider actions={actions}>
<SessionProvider session={session}>
<UserContext>
{typebotId ? (
<TypebotContext typebotId={typebotId}>
<WorkspaceContext>
<Component />
<SupportBubble />
</WorkspaceContext>
</TypebotContext>
) : (
<WorkspaceContext>
<Component {...pageProps} />
<SupportBubble />
</WorkspaceContext>
)}
</UserContext>
</SessionProvider>
</KBarProvider>
</ChakraProvider>
)
}

export default App

4 comments on commit cd24482

@vercel
Copy link

@vercel vercel bot commented on cd24482 May 14, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on cd24482 May 14, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on cd24482 May 14, 2022

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:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

Please sign in to comment.