Skip to content

Commit

Permalink
Remove the CTA from zero-state
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Sep 22, 2023
1 parent 8599e04 commit fc90bc1
Showing 1 changed file with 24 additions and 40 deletions.
64 changes: 24 additions & 40 deletions packages/web-console/src/scenes/Result/zero-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,41 +28,27 @@ const StyledText = styled(Text)`
}
`

const RunLink = styled(Text)`
cursor: pointer;
`

export const ZeroState = () => {
const dispatch = useDispatch()

return (
<PaneWrapper>
<StyledPaneContent>
<Items>
<StyledHeading level={3}>
Enter a query and press{" "}
<RunLink
color="green"
onClick={() => dispatch(actions.query.toggleRunning())}
>
Run
</RunLink>{" "}
to view results.
</StyledHeading>
<StyledText color="gray2">
Get $200 in free credits when you sign up for{" "}
<a
href="https://questdb.io/cloud"
target="_blank"
rel="noopener noreferrer"
>
QuestDB Cloud
</a>
.<br />
No credit card required.
</StyledText>
</Items>
</StyledPaneContent>
</PaneWrapper>
)
}
export const ZeroState = () => (
<PaneWrapper>
<StyledPaneContent>
<Items>
<StyledHeading level={3}>
Enter a query and press <Text color="green">Run</Text> to view
results.
</StyledHeading>
<StyledText color="gray2">
Get $200 in free credits when you sign up for{" "}
<a
href="https://questdb.io/cloud"
target="_blank"
rel="noopener noreferrer"
>
QuestDB Cloud
</a>
.<br />
No credit card required.
</StyledText>
</Items>
</StyledPaneContent>
</PaneWrapper>
)

0 comments on commit fc90bc1

Please sign in to comment.