Skip to content

Commit c929c4e

Browse files
committed
Rename "deposit" to "add tokens"
1 parent e3d8bfe commit c929c4e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/staking/src/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export type StakeDetails = ReturnType<
8383
>;
8484

8585
export enum AccountHistoryItemType {
86-
Deposit,
86+
AddTokens,
8787
LockedDeposit,
8888
Withdrawal,
8989
RewardsCredited,
@@ -97,7 +97,7 @@ export enum AccountHistoryItemType {
9797
}
9898

9999
const AccountHistoryAction = {
100-
Deposit: () => ({ type: AccountHistoryItemType.Deposit as const }),
100+
AddTokens: () => ({ type: AccountHistoryItemType.AddTokens as const }),
101101
LockedDeposit: (unlockDate: Date) => ({
102102
type: AccountHistoryItemType.LockedDeposit as const,
103103
unlockDate,
@@ -506,7 +506,7 @@ const MOCK_DATA: Record<string, Data> = {
506506
const mkMockHistory = (): AccountHistory => [
507507
{
508508
timestamp: new Date("2024-06-10T00:00:00Z"),
509-
action: AccountHistoryAction.Deposit(),
509+
action: AccountHistoryAction.AddTokens(),
510510
amount: 2_000_000n,
511511
accountTotal: 2_000_000n,
512512
availableRewards: 0n,

apps/staking/src/components/AccountHistory/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const mkDescription = (action: AccountHistoryAction): string => {
8787
case AccountHistoryItemType.Claim: {
8888
return "Rewards claimed";
8989
}
90-
case AccountHistoryItemType.Deposit: {
91-
return "Tokens deposited";
90+
case AccountHistoryItemType.AddTokens: {
91+
return "Tokens added";
9292
}
9393
case AccountHistoryItemType.LockedDeposit: {
9494
return `Locked tokens deposited, unlocking ${action.unlockDate.toLocaleString()}`;

apps/staking/src/components/AccountSummary/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const AccountSummary = ({
6868
<div className="mt-8 flex flex-row items-center gap-4">
6969
<TransferButton
7070
actionDescription="Add funds to your balance"
71-
actionName="Deposit"
71+
actionName="Add Tokens"
7272
max={walletAmount}
7373
transfer={deposit}
7474
/>

0 commit comments

Comments
 (0)