🛂 Display suspected typebot banner only if workspace is not verified
This commit is contained in:
@@ -17,9 +17,11 @@ import { GraphProvider } from '@/features/graph/providers/GraphProvider'
|
|||||||
import { EventsCoordinatesProvider } from '@/features/graph/providers/EventsCoordinateProvider'
|
import { EventsCoordinatesProvider } from '@/features/graph/providers/EventsCoordinateProvider'
|
||||||
import { TypebotNotFoundPage } from './TypebotNotFoundPage'
|
import { TypebotNotFoundPage } from './TypebotNotFoundPage'
|
||||||
import { SuspectedTypebotBanner } from './SuspectedTypebotBanner'
|
import { SuspectedTypebotBanner } from './SuspectedTypebotBanner'
|
||||||
|
import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
|
||||||
|
|
||||||
export const EditorPage = () => {
|
export const EditorPage = () => {
|
||||||
const { typebot, currentUserMode, is404 } = useTypebot()
|
const { typebot, currentUserMode, is404 } = useTypebot()
|
||||||
|
const { workspace } = useWorkspace()
|
||||||
const backgroundImage = useColorModeValue(
|
const backgroundImage = useColorModeValue(
|
||||||
'radial-gradient(#c6d0e1 1px, transparent 0)',
|
'radial-gradient(#c6d0e1 1px, transparent 0)',
|
||||||
'radial-gradient(#2f2f39 1px, transparent 0)'
|
'radial-gradient(#2f2f39 1px, transparent 0)'
|
||||||
@@ -32,7 +34,7 @@ export const EditorPage = () => {
|
|||||||
<Seo title={typebot?.name ? `${typebot.name} | Editor` : 'Editor'} />
|
<Seo title={typebot?.name ? `${typebot.name} | Editor` : 'Editor'} />
|
||||||
<Flex overflow="clip" h="100vh" flexDir="column" id="editor-container">
|
<Flex overflow="clip" h="100vh" flexDir="column" id="editor-container">
|
||||||
<GettingStartedModal />
|
<GettingStartedModal />
|
||||||
{typebot?.riskLevel === 100 && (
|
{typebot?.riskLevel === 100 && !workspace?.isVerified && (
|
||||||
<SuspectedTypebotBanner typebotId={typebot.id} />
|
<SuspectedTypebotBanner typebotId={typebot.id} />
|
||||||
)}
|
)}
|
||||||
<TypebotHeader />
|
<TypebotHeader />
|
||||||
|
|||||||
Reference in New Issue
Block a user