Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make the new ticket button more visible for paying users #21453

Merged
merged 8 commits into from
Apr 10, 2024
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -182,22 +182,48 @@ export const SidePanelSupport = (): JSX.Element => {
</ul>
</Section>

<Section title="Ask the community">
<p>
Questions about features, how to's, or use cases? There are thousands of discussions in our
community forums.
</p>
<LemonButton
type="primary"
fullWidth
center
to="https://posthog.com/questions"
targetBlank
className="mt-2"
>
Ask a question
</LemonButton>
</Section>
{hasAvailableFeature(AvailableFeature.PRIORITY_SUPPORT) ? (
<>
<Section title="Ask an engineer">
<p>Can't find what you need in the docs?</p>
<LemonButton
type="primary"
fullWidth
center
onClick={() => openEmailForm()}
targetBlank
className="mt-2"
>
Open a ticket
</LemonButton>
</Section>
{isEmailFormOpen ? <SupportFormBlock onCancel={() => closeEmailForm()} /> : null}
<Section title="Ask the community">
<p>
Questions about features, how to's, or use cases? There are thousands of discussions
in our community forums.{' '}
<Link to="https://posthog.com/questions">Ask a question</Link>
</p>
</Section>
</>
) : (
<Section title="Ask the community">
<p>
Questions about features, how to's, or use cases? There are thousands of discussions in
our community forums.
</p>
<LemonButton
type="primary"
fullWidth
center
to="https://posthog.com/questions"
targetBlank
className="mt-2"
>
Ask a question
</LemonButton>
</Section>
)}

<Section title="Share feedback">
<ul>
Expand Down
Loading