Skip to content

Commit bdbdd52

Browse files
committed
fix: fix up Namadillo text spelling/grammar (#989)
Closes #870.
1 parent 2944e6b commit bdbdd52

21 files changed

+45
-45
lines changed

apps/extension/src/Approvals/Commitment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const IconMap: Record<TxType, React.ReactNode> = {
3838
const TitleMap: Record<TxType, string> = {
3939
[TxType.Bond]: "Stake",
4040
[TxType.Unbond]: "Unstake",
41-
[TxType.Redelegate]: "Re-Delegate",
41+
[TxType.Redelegate]: "Redelegate",
4242
[TxType.Withdraw]: "Withdraw",
4343
[TxType.RevealPK]: "Reveal PK",
4444
[TxType.IBCTransfer]: "IBC Transfer",
@@ -76,7 +76,7 @@ const renderContent = (tx: CommitmentDetailProps): ReactNode => {
7676
const redelegateTx = tx as RedelegateProps;
7777
return (
7878
<>
79-
Re-delegate <NamCurrency amount={redelegateTx.amount} /> from{" "}
79+
Redelegate <NamCurrency amount={redelegateTx.amount} /> from{" "}
8080
{formatAddress(redelegateTx.sourceValidator)} to{" "}
8181
{formatAddress(redelegateTx.destinationValidator)}{" "}
8282
</>

apps/namadillo/src/App/Governance/GovernanceOverview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export const GovernanceOverview: React.FC = () => {
4545
<ConnectBanner text="To vote please connect your account" />
4646
)}
4747
<ProposalListPanel
48-
title="Live Governance Proposals"
48+
title="Live Proposals"
4949
errorText="Unable to load live governance proposals"
50-
emptyText="There are no active live proposals"
50+
emptyText="There are no live proposals"
5151
isEmpty={liveProposals.length === 0}
5252
atoms={activeAtoms}
5353
>

apps/namadillo/src/App/Settings/Advanced.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const Advanced = (): JSX.Element => {
6565
rpcMutation.error.message
6666
: rpcMutation.error
6767
}
68-
label="RPC Url"
68+
label="RPC URL"
6969
className="[&_input]:border-neutral-300"
7070
onChange={(e) => {
7171
setRpc(e.currentTarget.value);

apps/namadillo/src/App/Settings/SettingsSignArbitrary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const SettingsSignArbitrary = (): JSX.Element => {
1414
<p className="text-sm">
1515
Enabling this setting puts you at risk of phishing attacks. Please check
1616
what you are signing very carefully when using this feature. We
17-
recommend keeping this setting turned off unless absolutely necessary
17+
recommend keeping this setting turned off unless absolutely necessary.
1818
</p>
1919
<ToggleButton
2020
label={
@@ -32,7 +32,7 @@ export const SettingsSignArbitrary = (): JSX.Element => {
3232
<IoWarning />
3333
</i>
3434
You are at risk of phishing attacks. Please review carefully what
35-
you sign
35+
you sign.
3636
</div>
3737
</Alert>
3838
)}

apps/namadillo/src/App/Sidebars/ProposalDiscord.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const ProposalDiscord: React.FC = () => {
88
<Stack gap={6}>
99
<BsDiscord className="m-auto text-[90px] leading-none -mb-3" />
1010
<p className="text-[18px] leading-tight">
11-
Join proposal discussions on discord
11+
Join proposal discussions on Discord
1212
</p>
1313
<ActionButton
1414
size="xs"

apps/namadillo/src/App/Sidebars/ValidatorDiversification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const ValidatorDiversification = (): JSX.Element => {
1212
)}
1313
>
1414
<img src={stakingInfo} className="w-full max-w-42 mx-auto" />
15-
<p>When staking consider diversifying Across multiple validators.</p>
15+
<p>When staking, consider diversifying across multiple validators</p>
1616
<ActionButton
1717
className="max-w-44"
1818
outlineColor="cyan"

apps/namadillo/src/App/Staking/AllValidatorsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const AllValidatorsTable = ({
5757
...sortableColumns["votingPowerInNAM"],
5858
},
5959
{
60-
children: "Comission",
60+
children: "Commission",
6161
className: "text-right",
6262
...sortableColumns["commission"],
6363
},
@@ -98,7 +98,7 @@ export const AllValidatorsTable = ({
9898
</span>
9999
</div>,
100100
// Commission:
101-
<div key={`comission-${validator.address}`} className="text-right">
101+
<div key={`commission-${validator.address}`} className="text-right">
102102
{formatPercentage(BigNumber(validator.commission))}
103103
</div>,
104104
],

apps/namadillo/src/App/Staking/BondingAmountOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const BondingAmountOverview = ({
4545
{amountToDelegate && amountToDelegate.gt(0) && (
4646
<span className="text-success text-md font-light mt-1.5 ml-3">
4747
(+
48-
<NamCurrency amount={amountToDelegate} /> Re-Delegate)
48+
<NamCurrency amount={amountToDelegate} /> Redelegate)
4949
</span>
5050
)}
5151
</div>

apps/namadillo/src/App/Staking/IncrementBonding.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ const IncrementBonding = (): JSX.Element => {
106106
title: "Staking transaction in progress",
107107
description: (
108108
<>
109-
The staking transaction of <NamCurrency amount={totalUpdatedAmount} />{" "}
110-
is being processed
109+
Your staking transaction of{" "}
110+
<NamCurrency amount={totalUpdatedAmount} /> is being processed
111111
</>
112112
),
113113
type: "pending",
@@ -200,8 +200,9 @@ const IncrementBonding = (): JSX.Element => {
200200
<GoAlert />
201201
</i>
202202
<p className="text-balance">
203-
Staking will lock and bind your assets to unbonding
204-
schedule
203+
Staking will lock and bind your assets to the TODO
204+
unbonding schedule. To make your NAM liquid again, you
205+
will need to unstake.
205206
</p>
206207
</div>
207208
</Alert>

apps/namadillo/src/App/Staking/IncrementBondingTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const IncrementBondingTable = ({
134134

135135
// Commission
136136
<div
137-
key={`comission-${validator.uuid}`}
137+
key={`commission-${validator.uuid}`}
138138
className="text-right leading-tight"
139139
>
140140
{formatPercentage(validator.commission)}

apps/namadillo/src/App/Staking/MyValidatorsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const MyValidatorsTable = (): JSX.Element => {
9595
</span>
9696
</div>,
9797
<div
98-
key={`comission-${validator.address}`}
98+
key={`commission-${validator.address}`}
9999
className="text-right leading-tight"
100100
>
101101
{formatPercentage(validator.commission)}
@@ -123,7 +123,7 @@ export const MyValidatorsTable = (): JSX.Element => {
123123
borderRadius="sm"
124124
onClick={() => navigate(StakingRoutes.redelegateBonding().url)}
125125
>
126-
Re-delegate
126+
Redelegate
127127
</ActionButton>
128128
<ActionButton
129129
className="basis-[content] py-1 hover:before:border-pink"

apps/namadillo/src/App/Staking/ReDelegate.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export const ReDelegate = (): JSX.Element => {
8686
const dispatchPendingNotification = (): void => {
8787
dispatchNotification({
8888
id: "staking-redelegate",
89-
title: "Staking re-delegation in progress",
90-
description: <>The re-delegation transaction is being processed</>,
89+
title: "Staking redelegation in progress",
90+
description: <>Your redelegation transaction is being processed</>,
9191
type: "pending",
9292
});
9393
};
@@ -96,7 +96,7 @@ export const ReDelegate = (): JSX.Element => {
9696
if (isError) {
9797
dispatchNotification({
9898
id: "staking-redelegate-error",
99-
title: "Staking re-delegation failed",
99+
title: "Staking redelegation failed",
100100
description: (
101101
<ToastErrorDescription
102102
errorMessage={
@@ -162,7 +162,7 @@ export const ReDelegate = (): JSX.Element => {
162162

163163
const stepTitle = {
164164
remove: "Step 1 - Remove NAM from current Validators",
165-
assign: "Step 2 - Assign Re-delegating NAM",
165+
assign: "Step 2 - Assign Redelegating NAM",
166166
};
167167

168168
const totalUpdatedAmount = totalToRedelegate.minus(totalAssignedAmounts);
@@ -188,7 +188,7 @@ export const ReDelegate = (): JSX.Element => {
188188
>
189189
<header className="grid grid-cols-[repeat(auto-fit,_minmax(8rem,_1fr))] gap-1.5">
190190
<BondingAmountOverview
191-
title="Total amount to re-delegate"
191+
title="Total amount to redelegate"
192192
className="col-span-2"
193193
amountInNam={0}
194194
updatedAmountInNam={totalUpdatedAmount}
@@ -204,7 +204,7 @@ export const ReDelegate = (): JSX.Element => {
204204
type="warning"
205205
className="absolute py-3 right-3 top-4 max-w-[50%] text-xs rounded-sm"
206206
>
207-
To proceed, all re-delegated value must be assigned
207+
To proceed, all redelegated value must be assigned
208208
</Alert>
209209
</>
210210
)

apps/namadillo/src/App/Staking/ReDelegateAssignStake.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const ReDelegateAssignStake = ({
132132
>
133133
{hasInvalidDistribution && hasUpdatedAmounts ?
134134
"Invalid distribution"
135-
: "Re-Delegate"}
135+
: "Redelegate"}
136136
</ActionButton>
137137
<TransactionFees
138138
className="justify-self-end px-4"

apps/namadillo/src/App/Staking/ReDelegateRemoveStake.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const ReDelegateRemoveStake = ({
113113
borderRadius="sm"
114114
onClick={onReDelegateAll}
115115
>
116-
Re-delegate all
116+
Redelegate all
117117
</ActionButton>
118118
<ActionButton
119119
type="button"

apps/namadillo/src/App/Staking/ReDelegateTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ReDelegateTable = ({
3535

3636
const headers = [
3737
{ children: "Validator" },
38-
"Amount to Re-delegate",
38+
"Amount to Redelegate",
3939
{
4040
children: (
4141
<div className="leading-tight">
@@ -130,7 +130,7 @@ export const ReDelegateTable = ({
130130

131131
// Commission
132132
<div
133-
key={`comission-${validator.uuid}`}
133+
key={`commission-${validator.uuid}`}
134134
className="text-right leading-tight"
135135
>
136136
{formatPercentage(validator.commission)}

apps/namadillo/src/App/Staking/UnbondingAmountsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const UnbondingAmountsTable = (): JSX.Element => {
4444
<NamCurrency amount={amount || new BigNumber(0)} />
4545
</div>,
4646
<div
47-
key={`comission-${validator.address}`}
47+
key={`commission-${validator.address}`}
4848
className="text-right leading-tight text-sm"
4949
>
5050
{myValidator.timeLeft}

apps/namadillo/src/App/Staking/Unstake.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ const Unstake = (): JSX.Element => {
8989
title: "Unstake transaction in progress",
9090
description: (
9191
<>
92-
You&apos;ve unstaked&nbsp;
93-
<NamCurrency amount={totalUpdatedAmount} /> and the transaction is
94-
being processed
92+
Your unstaking transaction of{" "}
93+
<NamCurrency amount={totalUpdatedAmount} /> is being processed
9594
</>
9695
),
9796
type: "pending",
@@ -152,8 +151,8 @@ const Unstake = (): JSX.Element => {
152151
Select amount to unstake
153152
<Info>
154153
To unstake, type the amount of NAM you wish to remove from a
155-
validator. Please pay attention to the unbonding period, it might
156-
take a few days before the amount to be available.
154+
validator. Pay attention to the unbonding period; it might take a
155+
few days for the amount to become available.
157156
</Info>
158157
</span>
159158
}
@@ -199,7 +198,7 @@ const Unstake = (): JSX.Element => {
199198
<h3 className="text-sm">Unbonding period</h3>
200199
<div className="text-xl">21 Days</div>
201200
<p className="text-xs">
202-
Once this period has elapsed, you may access your assets in
201+
Once this period has elapsed, you can access your assets in
203202
the main dashboard
204203
</p>
205204
</Stack>

apps/namadillo/src/App/Staking/UnstakeBondingTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const UnstakeBondingTable = ({
139139

140140
// Commission
141141
<div
142-
key={`comission-${validator.uuid}`}
142+
key={`commission-${validator.uuid}`}
143143
className="text-right leading-tight"
144144
>
145145
{formatPercentage(validator.commission)}

apps/namadillo/src/App/Staking/ValidatorFilterNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const ValidatorFilterNav = ({
7272
size="sm"
7373
borderRadius="sm"
7474
>
75-
Randomise
75+
Randomize
7676
</ActionButton>
7777
)}
7878
</Stack>

apps/namadillo/src/hooks/useTransactionNotifications.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ export const useTransactionNotifications = (): void => {
9595
clearPendingNotifications();
9696
dispatchNotification({
9797
id: e.detail.transactionId,
98-
title: "Re-delegate failed",
98+
title: "Redelegate failed",
9999
description: (
100100
<ToastErrorDescription
101101
basicMessage={
102102
<>
103-
Your re-delegate transaction of{" "}
103+
Your redelegate transaction of{" "}
104104
<NamCurrency amount={e.detail.data.amount} /> from {sourceAddress}{" "}
105105
to {destAddress} has failed
106106
</>
@@ -117,10 +117,10 @@ export const useTransactionNotifications = (): void => {
117117
const destAddress = shortenAddress(e.detail.data.destinationValidator);
118118
dispatchNotification({
119119
id: e.detail.transactionId,
120-
title: "Re-delegate succeeded",
120+
title: "Redelegate succeeded",
121121
description: (
122122
<>
123-
Your re-delegate transaction of{" "}
123+
Your redelegate transaction of{" "}
124124
<NamCurrency amount={e.detail.data.amount} /> from {sourceAddress} to{" "}
125125
{destAddress} has succeeded
126126
</>

storybook/src/stories/StyledTable.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Default: Story = {
2525
<div key="voting-power" className="text-right">
2626
Voting Power
2727
</div>,
28-
"Comission",
28+
"Commission",
2929
],
3030
rows: [
3131
{
@@ -104,7 +104,7 @@ export const WithSortableTitles: Story = {
104104

105105
export const WithEmptyTitles: Story = {
106106
args: {
107-
headers: ["", "Validator", "Address", "Voting Power", "Comission", ""],
107+
headers: ["", "Validator", "Address", "Voting Power", "Commission", ""],
108108
rows: [
109109
{
110110
cells: [
@@ -134,7 +134,7 @@ export const WithEmptyTitles: Story = {
134134

135135
export const WithEvents: Story = {
136136
args: {
137-
headers: ["", "Validator", "Address", "Voting Power", "Comission", ""],
137+
headers: ["", "Validator", "Address", "Voting Power", "Commission", ""],
138138
rows: [
139139
{
140140
cells: [

0 commit comments

Comments
 (0)