diff --git a/src/screens/AskScreen.tsx b/src/screens/AskScreen.tsx index 535395e..b421c2b 100644 --- a/src/screens/AskScreen.tsx +++ b/src/screens/AskScreen.tsx @@ -130,16 +130,19 @@ export function AskScreen({ lessonId, questionId, prompt }: { lessonId?: number; back={lessonId !== undefined || prompt !== undefined} mascot={{ char: 'pi', mood: busy ? 'excited' : 'idle', size: 60 }} > - {!empty && ( - - )} +
+ {quota !== null && } + {!empty && ( + + )} +
@@ -198,7 +201,6 @@ export function AskScreen({ lessonId, questionId, prompt }: { lessonId?: number;
- {quota !== null && } ); @@ -336,21 +338,24 @@ function Message({ ); } -/** شمارنده‌ی زیرِ جعبه‌ی پرسش: رایگانِ امروز و اعتبارِ خریده‌شده، هر دو جدا و روشن. */ -function QuotaLine({ free, credits }: { free: number; credits: number }) { +/** + * شمارنده در سربرگِ دستیار: سوال‌های رایگانِ باقیِ امروز و سوال‌های خریده‌شده، هر کدام جدا و + * درشت، تا بچه پیش از پرسیدن بداند چقدر دارد. زدن روی دومی صفحه‌ی بسته‌ها را باز می‌کند. + */ +function QuotaPills({ free, credits }: { free: number; credits: number }) { const nav = useNav(); return ( -
- 0 ? 'bg-[#EAF8F0] text-[#2E7D5B]' : 'bg-soft text-muted'}`}> - رایگانِ امروز: {toFa(free)} + <> + 0 ? 'bg-white text-[#2E7D5B]' : 'bg-white/15 text-white/80'}`}> + {free > 0 ? <>{toFa(free)} سوالِ رایگانِ امروز : 'رایگانِ امروز تموم شد'} -
+ ); }