Skip to content

Commit

Permalink
fix: wording issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7u committed Jun 5, 2024
1 parent 35d3c33 commit 16454dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 10 additions & 8 deletions src/features/staking/components/delegation-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,19 @@ const DelegationRow = memo(DelegationRowBase);
type UnbondingRedelegationRowProps = {
balance: Coin;
completionTime: number;
isUnbonding: boolean;
onCancel?: () => void;
stakingRef: ReturnType<typeof useStaking>;
status: string;
validator?: Validator;
validatorAddress: string;
};

const UnbondingRedelegationRow = ({
balance,
completionTime,
isUnbonding,
onCancel,
stakingRef,
status,
validator,
validatorAddress,
}: UnbondingRedelegationRowProps) => {
Expand Down Expand Up @@ -324,14 +324,16 @@ const UnbondingRedelegationRow = ({
<div className="text-right">
<TokenColors text={formatCoin(balance)} />
</div>
<div className="text-right">Unbonding</div>
<div className="text-right">
{isUnbonding ? "Unbonding" : "Redelegation"}
</div>
<div className="text-right">
{formatUnbondingCompletionTime(completionTime)}
</div>
<div className="text-right">
{!!onCancel && (
<ButtonPill {...cancelProps} variant="danger">
Cancel Unstake
Cancel unbonding
</ButtonPill>
)}
</div>
Expand All @@ -356,7 +358,7 @@ const UnbondingRedelegationRow = ({
</div>
<div className="flex w-full flex-row justify-between">
<span>Status</span>
<span>{status}</span>
<span>{isUnbonding ? "Unbonding" : "Redelegation"}</span>
</div>
<div className="flex w-full flex-row justify-between">
<span>Completion</span>
Expand All @@ -365,7 +367,7 @@ const UnbondingRedelegationRow = ({
{!!onCancel && (
<div className="flex w-full flex-row justify-end">
<ButtonPill {...cancelProps} variant="danger">
Cancel Unstake
Cancel unbonding
</ButtonPill>
</div>
)}
Expand Down Expand Up @@ -538,7 +540,7 @@ const DelegationDetails = () => {
<div className={wrapperStyle}>
<div className={headerStyle} style={gridStyle}>
<UnbondingHeaderTitle mobile>
Unstakings/Redelegations
Unbondings/Redelegations
</UnbondingHeaderTitle>
<UnbondingHeaderTitle
onSort={setUnbondingsSortMethod}
Expand Down Expand Up @@ -582,10 +584,10 @@ const DelegationDetails = () => {
<UnbondingRedelegationRow
balance={unbondingRedelegation.balance}
completionTime={unbondingRedelegation.completionTime}
isUnbonding={isUnbonding}
key={index}
onCancel={onCancel}
stakingRef={stakingRef}
status={isUnbonding ? "Unbonding" : "Redelegation"}
validator={validatorsMap[validatorAddress]}
validatorAddress={validatorAddress}
/>
Expand Down
6 changes: 2 additions & 4 deletions src/features/staking/components/modals/unstaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ const UnstakingModal = () => {
return (
<>
<div className="mb-[35px] text-center uppercase">
<HeroText>
Unstake From {validator.description.moniker}
</HeroText>
<HeroText>Unbond From {validator.description.moniker}</HeroText>
</div>
{delegatedTokens && (
<div className="mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase">
Expand Down Expand Up @@ -269,7 +267,7 @@ const UnstakingModal = () => {
</div>
<div className="mt-[48px] w-full">
<Button disabled={isLoading} type="submit">
Unstake Now
Unbond Now
</Button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/features/staking/components/validator-delegation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default function ValidatorDelegation() {
}}
variant="danger"
>
Cancel Unstake
Cancel unbonding
</ButtonPill>
</span>
</div>
Expand Down

0 comments on commit 16454dd

Please sign in to comment.