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
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="Contact us">
<p>Can't find what you need in the docs?</p>
<LemonButton
type="primary"
fullWidth
center
onClick={() => openEmailForm()}
targetBlank
className="mt-2"
>
Email an engineer
</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 Expand Up @@ -255,7 +281,7 @@ export const SidePanelSupport = (): JSX.Element => {
) : (
<p>
Can't find what you need in the docs?{' '}
<Link onClick={() => openEmailForm()}>Email an engineer</Link>
<Link onClick={() => openEmailForm()}>Open a ticket</Link>
</p>
)}
</Section>
Expand Down
Loading