Skip to content

Commit 38f349f

Browse files
committed
Clean up subscription limit banner
1 parent 22551e6 commit 38f349f

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

cli/src/components/subscription-limit-banner.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const SubscriptionLimitBanner = () => {
102102
>
103103
{isWeeklyLimit ? (
104104
<>
105-
<text style={{ fg: theme.error }}>
105+
<text style={{ fg: theme.error, marginBottom: 1 }}>
106106
🛑 Weekly limit reached
107107
</text>
108108
<text style={{ fg: theme.muted }}>
@@ -116,12 +116,12 @@ export const SubscriptionLimitBanner = () => {
116116
</>
117117
) : isBlockExhausted ? (
118118
<>
119-
<text style={{ fg: theme.warning }}>
120-
⏱️ 5 hour limit reached
119+
<text style={{ fg: theme.warning, marginBottom: 1 }}>
120+
5 hour limit reached
121121
</text>
122122
{blockResetsAt && (
123123
<text style={{ fg: theme.muted }}>
124-
New block starts in {formatResetTime(blockResetsAt)}
124+
New session starts in {formatResetTime(blockResetsAt)}
125125
</text>
126126
)}
127127
</>
@@ -140,7 +140,7 @@ export const SubscriptionLimitBanner = () => {
140140
{hasAlaCarteCredits && (
141141
<Button onClick={handleToggleAlwaysALaCarte}>
142142
<text style={{ fg: theme.muted }}>
143-
{alwaysALaCarte ? '[x]' : '[ ]'} always use a-la-carte if subscription limit is reached
143+
{alwaysALaCarte ? '[x]' : '[ ]'} always use credits if subscription limit is reached
144144
</text>
145145
</Button>
146146
)}
@@ -150,26 +150,18 @@ export const SubscriptionLimitBanner = () => {
150150
<>
151151
<Button onClick={handleContinueWithCredits}>
152152
<text style={{ fg: theme.background, bg: theme.foreground }}>
153-
{' '}Continue with a-la-carte{' '}
154-
</text>
155-
<text style={{ fg: theme.muted }}>
156-
{' '}({remainingBalance.toLocaleString()} credits)
153+
{' '}Continue with credits ({remainingBalance.toLocaleString()}){' '}
157154
</text>
158155
</Button>
159156
{canUpgrade ? (
160157
<Button onClick={handleUpgrade}>
161-
<text style={{ fg: theme.background, bg: theme.muted }}>{' '}Upgrade Plan ↗{' '}</text>
158+
<text style={{ fg: theme.background, bg: theme.foreground }}>{' '}Upgrade Plan ↗{' '}</text>
162159
</Button>
163160
) : (
164161
<Button onClick={handleBuyCredits}>
165162
<text style={{ fg: theme.background, bg: theme.muted }}>{' '}Buy Credits ↗{' '}</text>
166163
</Button>
167164
)}
168-
{!isWeeklyLimit &&
169-
<Button onClick={handleWait}>
170-
<text style={{ fg: theme.background, bg: theme.muted }}>{' '}Wait for new block{' '}</text>
171-
</Button>
172-
}
173165
</>
174166
) : (
175167
<>

0 commit comments

Comments
 (0)