Skip to content

Commit fe19199

Browse files
authored
Merge pull request #66 from urnetwork/balance-code-updates
Balance Codes section updates
2 parents 6d66435 + 28ecfde commit fe19199

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

app/src/components/BalanceCodesSection.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ const BalanceCodesSection: React.FC = () => {
136136
<div className={colorClasses.iconBg}>
137137
<Ticket className="text-white" size={28} />
138138
</div>
139-
Balance Codes
139+
AppSumo Codes
140140
</h2>
141141
<p className="text-gray-400 mt-2">
142-
Manage your account balance codes for more data.
142+
Manage your account AppSumo codes for more data.
143143
</p>
144144
</div>
145145
</div>
@@ -149,8 +149,8 @@ const BalanceCodesSection: React.FC = () => {
149149
<div className="flex items-center gap-3">
150150
<TicketCheck size={20} className="text-white" />
151151
<div>
152-
<h3 className="font-medium text-white">Account Transfer Balance Codes</h3>
153-
<p className={colorClasses.headerText}>Redeem a transfer balance code to add data to your account.</p>
152+
<h3 className="font-medium text-white">Account AppSumo Codes</h3>
153+
<p className={colorClasses.headerText}>Redeem an AppSumo code to add data to your account.</p>
154154
</div>
155155
</div>
156156
</div>
@@ -198,8 +198,8 @@ const BalanceCodesSection: React.FC = () => {
198198
<div className="w-16 h-16 bg-gray-700 rounded-full flex items-center justify-center mx-auto mb-4">
199199
<TicketSlash className="text-gray-500" size={24} />
200200
</div>
201-
<h3 className="text-lg font-medium text-gray-200 mb-2">No Transfer Balance Codes Redeemed</h3>
202-
<p className="text-gray-400 italic">No transfer balance codes found for your network.</p>
201+
<h3 className="text-lg font-medium text-gray-200 mb-2">No AppSumo Codes Redeemed</h3>
202+
<p className="text-gray-400 italic">No AppSumo codes found for your network.</p>
203203
</div>
204204
</div>
205205
)}
@@ -215,7 +215,7 @@ const BalanceCodesSection: React.FC = () => {
215215
}`}
216216
>
217217
<TicketCheck size={20} />
218-
<span>Redeem Transfer Balance Code</span>
218+
<span>Redeem AppSumo Code</span>
219219
</button>
220220
</div>
221221
</div>
@@ -226,6 +226,7 @@ const BalanceCodesSection: React.FC = () => {
226226
onSuccess={() => {
227227
// reload balance codes
228228
loadTransferBalanceCodes();
229+
loadSubscriptionBalance();
229230
}}
230231
/>
231232
</div>

app/src/components/RedeemTransferBalanceCodeModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const RedeemTransferBalanceCodeModal: React.FC<RedeemTransferBalanceCodeModalPro
180180
/>
181181

182182
<p id="balance-code-help" className="text-gray-500 text-sm mt-3">
183-
Redeeming transfer balance will add data credit to your network.
183+
Redeeming AppSumo code will add data credit to your network.
184184
</p>
185185
</div>
186186

app/src/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ export const redeemTransferBalanceCode = async (
988988
*/
989989
export const fetchSubscriptionBalance = async (
990990
token: string
991-
): Promise<SubscriptionBalanceResponse> => {
991+
): Promise<SubscriptionBalanceResponse|{error: {message: string}}> => {
992992
try {
993993
const response = await fetch(`${API_BASE_URL}/subscription/balance`, {
994994
method: "GET",

0 commit comments

Comments
 (0)