@@ -145,7 +145,7 @@ exports[`Visualization renders with result and escapes any HTML 1`] = `
class="sc-cvbbAY cqXpvD zoom-out"
>
diff --git a/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap b/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap
index 2bc63581ee4..4e60b1b98e1 100644
--- a/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap
+++ b/src/browser/modules/Stream/CypherFrame/__snapshots__/relatable-view.test.tsx.snap
@@ -6,7 +6,7 @@ exports[`RelatableViews RelatableView displays bodyMessage if no rows 1`] = `
class="sc-Rmtcm keiynT"
>
@@ -17,7 +17,7 @@ exports[`RelatableViews RelatableView displays bodyMessage if no rows 1`] = `
exports[`RelatableViews RelatableView does not display bodyMessage if rows, and escapes HTML 1`] = `
"String with HTML <strong>in</strong> it"
@@ -92,7 +92,7 @@ exports[`RelatableViews TableStatusbar displays no statusBarMessage 1`] = `
class="sc-Rmtcm keiynT"
>
@@ -104,7 +104,7 @@ exports[`RelatableViews TableStatusbar displays statusBarMessage 1`] = `
class="sc-Rmtcm keiynT"
>
Started streaming 1 records after 5 ms and completed after 10 ms.
diff --git a/src/browser/modules/Stream/PlayFrame.tsx b/src/browser/modules/Stream/PlayFrame.tsx
index 49985ae9387..2bb42f2f2cf 100644
--- a/src/browser/modules/Stream/PlayFrame.tsx
+++ b/src/browser/modules/Stream/PlayFrame.tsx
@@ -18,7 +18,7 @@
* along with this program. If not, see
.
*/
-import React, { useContext, useEffect, useState } from 'react'
+import React, { useEffect, useState } from 'react'
import { withBus } from 'react-suber'
import { fetchGuideFromAllowlistAction } from 'shared/modules/commands/commandsDuck'
@@ -38,36 +38,6 @@ import {
} from 'browser-components/icons/Icons'
import { splitMdxSlides } from '../Docs/MDX/splitMdx'
import { LAST_GUIDE_SLIDE } from 'shared/modules/udc/udcDuck'
-import { connect } from 'react-redux'
-import { GlobalState } from 'shared/globalState'
-import { inCloudEnv } from 'shared/modules/app/appDuck'
-import { getEdition, isEnterprise } from 'shared/modules/dbMeta/dbMetaDuck'
-import { PromotionContainer, AuraPromoLink } from './styled'
-import { ThemeContext } from 'styled-components'
-import { DARK_THEME } from 'shared/modules/settings/settingsDuck'
-
-const AuraPromotion = () => {
- const theme = useContext(ThemeContext)
- const isDarkTheme = theme.name === DARK_THEME
-
- return (
-
-
- Sign up
-
- for a free Neo4j cloud instance with
-
-
- )
-}
const {
play: { chapters }
@@ -80,7 +50,7 @@ const checkHtmlForSlides = (html: any) => {
return !!slides.length
}
-export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element {
+export function PlayFrame({ stack, bus }: any): JSX.Element {
const [stackIndex, setStackIndex] = useState(0)
const [atSlideStart, setAtSlideStart] = useState
(null)
const [atSlideEnd, setAtSlideEnd] = useState(null)
@@ -105,8 +75,7 @@ export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element {
currentFrame,
bus,
onSlide,
- shouldUseSlidePointer,
- showPromotion
+ shouldUseSlidePointer
)
if (stillMounted) {
setInitialPlay(false)
@@ -119,7 +88,7 @@ export function PlayFrame({ stack, bus, showPromotion }: any): JSX.Element {
stillMounted = false
}
// The full dependency array causes a re-run which switches to slide 1
- }, [bus, currentFrame, showPromotion])
+ }, [bus, currentFrame])
const { guide, aside, hasCarousel, isRemote } = guideObj
@@ -189,8 +158,7 @@ function generateContent(
stackFrame: any,
bus: any,
onSlide: any,
- shouldUseSlidePointer: any,
- showPromotion = false
+ shouldUseSlidePointer: any
): any {
// Not found
if (stackFrame.response && stackFrame.response.status === 404) {
@@ -274,25 +242,13 @@ function generateContent(
// Check if content exists locally
if (isPlayChapter(guideName)) {
const { content, title, subtitle, slides = null } = chapters[guideName]
-
- const isPlayStart = stackFrame.cmd.trim() === ':play start'
- const updatedContent =
- isPlayStart && showPromotion ? (
- <>
- {content}
-
- >
- ) : (
- content
- )
-
return {
guide: (
({
- showPromotion:
- getEdition(state) !== null && !isEnterprise(state) && !inCloudEnv(state)
-})
-
-export default connect(mapStateToProps)(withBus(PlayFrame))
+export default withBus(PlayFrame)
diff --git a/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap b/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap
index 49f28da9660..5b6d2f19ad4 100644
--- a/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap
+++ b/src/browser/modules/Stream/__snapshots__/SchemaFrame.test.tsx.snap
@@ -10,13 +10,13 @@ exports[`SchemaFrame renders empty 1`] = `
class="sc-dqBHgY eVMXHH"
>
@@ -24,10 +24,10 @@ exports[`SchemaFrame renders empty 1`] = `
|
None
|
@@ -35,13 +35,13 @@ exports[`SchemaFrame renders empty 1`] = `
@@ -49,10 +49,10 @@ exports[`SchemaFrame renders empty 1`] = `
|
None
|
@@ -92,43 +92,43 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = `
class="sc-dqBHgY eVMXHH"
>
@@ -136,42 +136,42 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = `
|
None
|
|
|
|
|
|
|
@@ -179,10 +179,10 @@ exports[`SchemaFrame renders empty for Neo4j >= 4.0 1`] = `
|
None
|
@@ -222,13 +222,13 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = `
class="sc-dqBHgY eVMXHH"
>
@@ -236,10 +236,10 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = `
|
ON :Movie(released) ONLINE
|
@@ -247,13 +247,13 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = `
@@ -261,10 +261,10 @@ exports[`SchemaFrame renders results for Neo4j < 4.0 1`] = `
|
ON ( book:Book ) ASSERT book.isbn IS UNIQUE
|
diff --git a/src/browser/modules/Stream/styled.tsx b/src/browser/modules/Stream/styled.tsx
index c9a7db1c9ad..120857297f5 100644
--- a/src/browser/modules/Stream/styled.tsx
+++ b/src/browser/modules/Stream/styled.tsx
@@ -376,17 +376,3 @@ export const AnimationContainer = styled.div`
margin-top: 10px;
animation: ${rollDownAnimation} 0.4s ease-in;
`
-
-export const PromotionContainer = styled.div`
- display: flex;
- align-items: center;
- font-size: 14px;
- margin-top: 20px;
- justify-content: center;
-`
-
-export const AuraPromoLink = styled.a`
- cursor: pointer;
- text-decoration: none;
- margin-right: 5px;
-`