fix: Add response api link to docs navbar (#1918)

This commit is contained in:
Johannes
2024-01-17 15:40:58 -06:00
committed by GitHub
parent f35b007e98
commit 998773be6b
3 changed files with 7 additions and 3 deletions

View File

@@ -286,6 +286,7 @@ export const navigation: Array<NavGroup> = [
{ title: "Attribute Classes", href: "/docs/api/management/attribute-classes" },
{ title: "Me", href: "/docs/api/management/me" },
{ title: "People", href: "/docs/api/management/people" },
{ title: "Responses", href: "/docs/api/management/responses" },
{ title: "Surveys", href: "/docs/api/management/surveys" },
{ title: "Webhooks", href: "/docs/api/management/webhooks" },
],

View File

@@ -43,7 +43,7 @@ export default function PricingTableComponent({
setLoadingCustomerPortal(true);
const sessionUrl = await manageSubscriptionAction(team.id, environmentId);
router.push(sessionUrl);
setLoadingCustomerPortal(true);
setLoadingCustomerPortal(false);
};
const upgradePlan = async (priceLookupKeys: StripePriceLookupKeys[]) => {
@@ -141,7 +141,7 @@ export default function PricingTableComponent({
unlimited: true,
},
{
title: "Reusable Segmentscoming",
title: "Reusable Segments",
comingSoon: true,
unlimited: true,
},
@@ -172,6 +172,9 @@ export default function PricingTableComponent({
<div className="justify-between gap-4 rounded-lg">
{team.billing.stripeCustomerId ? (
<div className="flex w-full justify-end">
<Button variant="minimal" className="justify-center py-2 shadow-sm" onClick={openCustomerPortal}>
Cancel Subscription
</Button>
<Button
variant="secondary"
className="justify-center py-2 shadow-sm"

View File

@@ -109,7 +109,7 @@ export const PricingCard = ({
</div>
<span className="ml-2 text-sm text-slate-500 dark:text-slate-400">{feature.title}</span>
{feature.comingSoon && (
<span className=" mx-2 bg-blue-100 p-1 text-xs text-slate-400 dark:bg-slate-700 dark:text-teal-500">
<span className="mx-2 rounded bg-blue-100 px-3 py-1 text-xs text-blue-700 dark:bg-slate-700 dark:text-teal-500">
coming soon
</span>
)}