forked from Tadrisino/MathApp_frontend
packs: no per-question price on the card
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,6 @@ export function SubscriptionScreen() {
|
|||||||
function PackCard({ plan, onBuy }: { plan: Plan; onBuy: () => void }) {
|
function PackCard({ plan, onBuy }: { plan: Plan; onBuy: () => void }) {
|
||||||
const featured = plan.popular;
|
const featured = plan.popular;
|
||||||
const isPack = plan.kind === 'pack';
|
const isPack = plan.kind === 'pack';
|
||||||
const perQuestion = isPack && plan.questionCredits ? Math.round(plan.price / plan.questionCredits / 10) * 10 : 0;
|
|
||||||
const tone = featured ? 'text-white/80' : 'text-muted';
|
const tone = featured ? 'text-white/80' : 'text-muted';
|
||||||
return (
|
return (
|
||||||
<div className="relative pt-3">
|
<div className="relative pt-3">
|
||||||
@@ -101,7 +100,6 @@ function PackCard({ plan, onBuy }: { plan: Plan; onBuy: () => void }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="text-left">
|
<div className="text-left">
|
||||||
<p className="text-base font-black">{formatToman(plan.price)}</p>
|
<p className="text-base font-black">{formatToman(plan.price)}</p>
|
||||||
{perQuestion > 0 && <p className={`mt-0.5 text-[11px] ${tone}`}>هر سوال {formatToman(perQuestion)}</p>}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul className="mb-4 flex flex-col gap-2 text-sm">
|
<ul className="mb-4 flex flex-col gap-2 text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user