From fc90bc12efaee1603e4529e6ee50eb0989401bdf Mon Sep 17 00:00:00 2001 From: Maciej Bodek Date: Fri, 22 Sep 2023 14:58:59 +0200 Subject: [PATCH] Remove the CTA from zero-state --- .../src/scenes/Result/zero-state.tsx | 64 +++++++------------ 1 file changed, 24 insertions(+), 40 deletions(-) diff --git a/packages/web-console/src/scenes/Result/zero-state.tsx b/packages/web-console/src/scenes/Result/zero-state.tsx index 05d1de6ec..9352573b8 100644 --- a/packages/web-console/src/scenes/Result/zero-state.tsx +++ b/packages/web-console/src/scenes/Result/zero-state.tsx @@ -2,8 +2,6 @@ import React from "react" import styled from "styled-components" import { PaneContent, PaneWrapper, Text } from "../../components" import { Heading } from "@questdb/react-components" -import { useDispatch } from "react-redux" -import { actions } from "../../store" const StyledPaneContent = styled(PaneContent)` align-items: center; @@ -30,41 +28,27 @@ const StyledText = styled(Text)` } ` -const RunLink = styled(Text)` - cursor: pointer; -` - -export const ZeroState = () => { - const dispatch = useDispatch() - - return ( - - - - - Enter a query and press{" "} - dispatch(actions.query.toggleRunning())} - > - Run - {" "} - to view results. - - - Get $200 in free credits when you sign up for{" "} - - QuestDB Cloud - - .
- No credit card required. -
-
-
-
- ) -} +export const ZeroState = () => ( + + + + + Enter a query and press Run to view + results. + + + Get $200 in free credits when you sign up for{" "} + + QuestDB Cloud + + .
+ No credit card required. +
+
+
+
+)