From 08cad8ddd4dc7436e3f36e8b7ed597abef0f8534 Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Thu, 13 Oct 2022 14:13:07 +0200 Subject: [PATCH 1/2] Update copy: tBTC The convention should be `tBTC` in every case. --- .../InititateDeauthorization.tsx | 8 +++++++- .../Modal/MapOperatorToStakingProviderModal/index.tsx | 4 ++-- src/components/StakingTimeline/index.tsx | 4 ++-- .../Staking/HowItWorks/StakingApplications/index.tsx | 4 ++-- src/pages/Staking/StakeDetailsPage/index.tsx | 2 +- src/utils/getStakingAppNameFromAddress.ts | 2 +- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/Modal/DeauthorizeApplicationModal/InititateDeauthorization.tsx b/src/components/Modal/DeauthorizeApplicationModal/InititateDeauthorization.tsx index 618dd8671..7e821bfaf 100644 --- a/src/components/Modal/DeauthorizeApplicationModal/InititateDeauthorization.tsx +++ b/src/components/Modal/DeauthorizeApplicationModal/InititateDeauthorization.tsx @@ -25,6 +25,11 @@ import TokenBalance from "../../TokenBalance" import { StakingAppName } from "../../../store/staking-applications" import { useInitiateDeauthorization } from "../../../hooks/staking-applications" +const stakingAppNameToAppLabel: Record = { + tbtc: "tBTC", + randomBeacon: "Random Beacon", +} + const InitiateDeauthorization: FC<{ closeModal: () => void stakingProvider: string @@ -44,7 +49,8 @@ const InitiateDeauthorization: FC<{
- You're about to initiate the decrease of your TBTC authoriation. + You're about to initiate the decrease of your{" "} + {stakingAppNameToAppLabel[stakingAppName]} authorization.
Initiation and confirmation of deauthorization is a two step action. diff --git a/src/components/Modal/MapOperatorToStakingProviderModal/index.tsx b/src/components/Modal/MapOperatorToStakingProviderModal/index.tsx index 8e88e6217..52680f849 100644 --- a/src/components/Modal/MapOperatorToStakingProviderModal/index.tsx +++ b/src/components/Modal/MapOperatorToStakingProviderModal/index.tsx @@ -106,11 +106,11 @@ const MapOperatorToStakingProviderModal: FC = () => { mb={"5"} > {isOperatorMappedOnlyInRandomBeacon ? ( - tbtc app + tBTC app ) : isOperatorMappedOnlyInTbtc ? ( random beacon app ) : ( - TBTC + Random Beacon apps (requires 2txs) + tBTC + Random Beacon apps (requires 2txs) )} { > For each stake, there are three applications available. PRE does not - require authorization. To authorize TBTC and Random Beacon, go to + require authorization. To authorize tBTC and Random Beacon, go to the Staking Page and select “Configure Stake”. @@ -228,7 +228,7 @@ const StakingTimeline: FC<{ statuses?: FlowStepStatus[] } & StackProps> = ({ status={statuses[1] ?? FlowStepStatus.inactive} > For each stake, there are three applications available. PRE does not - require authorization. To authorize TBTC and Random Beacon, go to the{" "} + require authorization. To authorize tBTC and Random Beacon, go to the{" "} Staking page and select “Configure Stake”. diff --git a/src/pages/Staking/HowItWorks/StakingApplications/index.tsx b/src/pages/Staking/HowItWorks/StakingApplications/index.tsx index 7b0a3baa9..1b725f176 100644 --- a/src/pages/Staking/HowItWorks/StakingApplications/index.tsx +++ b/src/pages/Staking/HowItWorks/StakingApplications/index.tsx @@ -136,7 +136,7 @@ const StakingApplications: PageComponent = () => { to="/staking" width="full" > - Authorize TBTC + Authorize tBTC