Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄Update pay wall dialog
Luke Vella61e0281f39dc
diff --git a/apps/web/src/components/pay-wall-dialog.tsx b/apps/web/src/components/pay-wall-dialog.tsxindex f963a6a56..1074847f6 100644--- a/apps/web/src/components/pay-wall-dialog.tsx+++ b/apps/web/src/components/pay-wall-dialog.tsx@@ -27,7 +27,7 @@ const monthlyPriceAnnualRate = (pricingData.yearly.amount / 100 / 12).toFixed(export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {const dialog = useDialog();- const [period, setPeriod] = React.useState("yearly");+ const [period, setPeriod] = React.useState("monthly");return (<Dialog {...dialog.dialogProps} {...forwardedProps}>@@ -90,6 +90,19 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {</header><section><RadioGroup value={period} onValueChange={setPeriod}>+ <li className="focus-within:ring-primary relative flex items-center justify-between rounded-lg border bg-gray-50 p-4 focus-within:ring-2">+ <div className="flex items-center gap-4">+ <RadioGroupItem id="monthly" value="monthly" />+ <label className="text-base font-semibold" htmlFor="monthly">+ <span role="presentation" className="absolute inset-0" />+ <Trans defaults="1 month" i18nKey="1month" />+ </label>+ </div>+ <p className="flex items-baseline gap-1">+ <span className="text-xl font-semibold">${monthlyPrice}</span>+ <span className="text-muted-foreground text-sm">/ mo</span>+ </p>+ </li><li className="focus-within:ring-primary relative flex items-center justify-between rounded-lg border bg-gray-50 p-4 focus-within:ring-2"><div className="space-y-1"><div className="flex items-center gap-4">@@ -106,7 +119,7 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {/></Badge></div>- <p className="text-muted-foreground flex items-baseline gap-1.5 pl-8 text-sm">+ <p className="text-muted-foreground pointer-events-none flex items-baseline gap-1.5 pl-8 text-sm"><span>${yearlyPrice}</span><span className="line-through opacity-50">${((pricingData.monthly.amount * 12) / 100).toFixed(2)}@@ -120,19 +133,6 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {<span className="text-muted-foreground text-sm">/ mo</span></p></li>- <li className="focus-within:ring-primary relative flex items-center justify-between rounded-lg border bg-gray-50 p-4 focus-within:ring-2">- <div className="flex items-center gap-4">- <RadioGroupItem id="monthly" value="monthly" />- <label className="text-base font-semibold" htmlFor="monthly">- <span role="presentation" className="absolute inset-0" />- <Trans defaults="1 month" i18nKey="1month" />- </label>- </div>- <p className="flex items-baseline gap-1">- <span className="text-xl font-semibold">${monthlyPrice}</span>- <span className="text-muted-foreground text-sm">/ mo</span>- </p>- </li></RadioGroup></section><footer className="space-y-4">