mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
@@ -235,7 +235,7 @@ const ActionButton = ({
|
|||||||
|
|
||||||
// contact
|
// contact
|
||||||
if (detail.type === 'dynamic') {
|
if (detail.type === 'dynamic') {
|
||||||
return <ContactSales />;
|
return <BookDemo plan={detail.plan} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not signed in
|
// not signed in
|
||||||
@@ -334,17 +334,28 @@ const Downgrade = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ContactSales = () => {
|
const BookDemo = ({ plan }: { plan: SubscriptionPlan }) => {
|
||||||
const t = useAFFiNEI18N();
|
const t = useAFFiNEI18N();
|
||||||
|
const url = useMemo(() => {
|
||||||
|
switch (plan) {
|
||||||
|
case SubscriptionPlan.Team:
|
||||||
|
return 'https://6dxre9ihosp.typeform.com/to/niBcdkvs';
|
||||||
|
case SubscriptionPlan.Enterprise:
|
||||||
|
return 'https://6dxre9ihosp.typeform.com/to/rFfobTjf';
|
||||||
|
default:
|
||||||
|
return 'https://affine.pro/pricing';
|
||||||
|
}
|
||||||
|
}, [plan]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
className={styles.planAction}
|
className={styles.planAction}
|
||||||
href="https://6dxre9ihosp.typeform.com/to/uZeBtpPm"
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
<Button className={styles.planAction} type="primary">
|
<Button className={styles.planAction} type="primary">
|
||||||
{t['com.affine.payment.contact-sales']()}
|
{t['com.affine.payment.book-a-demo']()}
|
||||||
</Button>
|
</Button>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -768,6 +768,7 @@
|
|||||||
"com.affine.payment.buy-pro": "Buy Pro",
|
"com.affine.payment.buy-pro": "Buy Pro",
|
||||||
"com.affine.payment.change-to": "Change to {{to}} Billing",
|
"com.affine.payment.change-to": "Change to {{to}} Billing",
|
||||||
"com.affine.payment.contact-sales": "Contact Sales",
|
"com.affine.payment.contact-sales": "Contact Sales",
|
||||||
|
"com.affine.payment.book-a-demo": "Book a Demo",
|
||||||
"com.affine.payment.current-plan": "Current Plan",
|
"com.affine.payment.current-plan": "Current Plan",
|
||||||
"com.affine.payment.disable-payment.description": "This is a special testing(Canary) version of AFFiNE. Account upgrades are not supported in this version. If you want to experience the full service, please download the stable version from our website.",
|
"com.affine.payment.disable-payment.description": "This is a special testing(Canary) version of AFFiNE. Account upgrades are not supported in this version. If you want to experience the full service, please download the stable version from our website.",
|
||||||
"com.affine.payment.disable-payment.title": "Account Upgrade Unavailable",
|
"com.affine.payment.disable-payment.title": "Account Upgrade Unavailable",
|
||||||
|
|||||||
Reference in New Issue
Block a user