Skip to content

Commit

Permalink
chore: rename to using_fee_credits
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Nov 22, 2024
1 parent a9c174e commit 3aee39c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/context/AccountContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface AccountContextType {
connectorType?: AccountInfo["connectorType"];
lightningAddress?: AccountInfo["lightningAddress"];
nodeRequired?: AccountInfo["nodeRequired"];
usingDiscontinuedWallet?: AccountInfo["usingDiscontinuedWallet"];
usingFeeCredits?: AccountInfo["usingFeeCredits"];
} | null;
balancesDecorated: {
fiatBalance: string;
Expand Down
4 changes: 2 additions & 2 deletions src/app/screens/Home/DefaultView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ const DefaultView: FC<Props> = (props) => {
</Alert>
)}

{account?.usingDiscontinuedWallet && (
{account?.usingFeeCredits && (
<Alert type="warn">
<div className="flex items-center gap-2">
<div className="shrink-0">
<PopiconsCircleExclamationLine className="w-5 h-5" />
</div>
<span className="text-sm">
<Trans
i18nKey={"default_view.using_discontinued_wallet"}
i18nKey={"default_view.using_fee_credits"}
t={t}
components={[
// eslint-disable-next-line react/jsx-key
Expand Down
4 changes: 2 additions & 2 deletions src/common/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface AccountInfoRes {
pubkey?: string;
lightning_address?: string;
node_required?: boolean;
using_discontinued_wallet?: boolean;
using_fee_credits?: boolean;
};
name: string;
avatarUrl?: string;
Expand Down Expand Up @@ -122,7 +122,7 @@ export const swrGetAccountInfo = async (
avatarUrl,
lightningAddress: response.info.lightning_address,
nodeRequired: response.info.node_required,
usingDiscontinuedWallet: response.info.using_discontinued_wallet,
usingFeeCredits: response.info.using_fee_credits,
};
storeAccounts({
...accountsCache,
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
}
},
"upgrade_account": "You are using the old LNDHub setup. <0>Please re-connect</0> your Alby account to get access to the latest features.",
"using_discontinued_wallet": "Alby Hub replaces your current Alby wallet in January 2025. <0>Update now</0>."
"using_fee_credits": "Alby Hub replaces your current Alby wallet in January 2025. <0>Update now</0>."
}
},
"accounts": {
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export interface AccountInfo {
avatarUrl?: string;
lightningAddress?: string;
nodeRequired?: boolean;
usingDiscontinuedWallet?: boolean;
usingFeeCredits?: boolean;
}

export type GetAccountInformationResponses = GetAccountInformationResponse & {
node_required: boolean;
using_discontinued_wallet: boolean;
using_fee_credits: boolean;
limits?: {
max_send_volume: number;
max_send_amount: number;
Expand Down

0 comments on commit 3aee39c

Please sign in to comment.