Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: add comparison table & faqs to plans selection dialog

Abdullah Atta4b9d9e435335
diff --git a/apps/web/src/dialogs/buy-dialog/buy-dialog.tsx b/apps/web/src/dialogs/buy-dialog/buy-dialog.tsx
index 16f4bec01..83c3080dd 100644
--- a/apps/web/src/dialogs/buy-dialog/buy-dialog.tsx
+++ b/apps/web/src/dialogs/buy-dialog/buy-dialog.tsx
@@ -29,6 +29,8 @@ import { PaddleCheckout } from "./paddle";
import { Period, Plan, PricingInfo } from "./types";
import { getPlans, PERIOD_METADATA, PLAN_METADATA, usePlans } from "./plans";
import {
+ ComparePlans,
+ Footer,
formatRecurringPeriod,
formatRecurringPeriodShort,
PlansList
@@ -130,7 +132,11 @@ export const BuyDialog = DialogManager.register(function BuyDialog(
) : (
<Flex sx={{ flexDirection: "column", py: 25, flex: 1, px: 25 }}>
<Flex sx={{ flexDirection: "column", alignSelf: "center" }}>
- <Text variant="heading" sx={{ textAlign: "center" }}>
+ <Text
+ id="select-plan"
+ variant="heading"
+ sx={{ textAlign: "center" }}
+ >
Select a plan
</Text>
<Text
@@ -145,6 +151,15 @@ export const BuyDialog = DialogManager.register(function BuyDialog(
selectedPlan={user?.subscription.plan || SubscriptionPlan.FREE}
onPlanSelected={(plan) => selectPlan(plan)}
/>
+ <Flex
+ sx={{
+ flexDirection: "column",
+ mt: 100
+ }}
+ >
+ <ComparePlans />
+ <Footer />
+ </Flex>
</Flex>
)}
</BaseDialog>