Skip to content

Commit

Permalink
chore: use self closing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik committed Dec 19, 2024
1 parent e273bde commit 9b11259
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/modals/OperatorStakingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const OperatorStakingModal = ({

setAmountToStake(textValue);
}}
></input>
/>
{gateway &&
(amountToStake?.length > 0 ||
(balances?.io || 0) < minRequiredStakeToAdd) &&
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/OperatorWithdrawalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const OperatorStakingModal = ({

setAmountToWithdraw(textValue);
}}
></input>
/>

{amountToWithdraw?.length > 0 && errorMessages.withdrawAmount && (
<ErrorMessageIcon
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/RedelegateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const RedelegateModal = ({

setAmountToRedelegate(textValue);
}}
></input>
/>
{targetGateway &&
(amountToRedelegate?.length > 0 ||
maxRedelegationStake.valueOf() < minRequiredStakeToAdd) &&
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/StakeWithdrawalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const StakeWithdrawalModal = ({

setAmountToWithdraw(textValue);
}}
></input>
/>
{amountToWithdraw?.length > 0 && errorMessages.withdrawAmount && (
<ErrorMessageIcon
errorMessage={errorMessages.withdrawAmount}
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/StakingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const StakingModal = ({

setAmountToStake(textValue);
}}
></input>
/>
{gateway &&
(amountToStake?.length > 0 ||
(balances?.io || 0) < minRequiredStakeToAdd ||
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Observe/ObserveHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ObserveHeader = ({
}) => {
const params = useParams();
const ownerId = params?.ownerId;

const [runningObservation, setRunningObservation] = useState(false);

// fetch current prescribed names, fallback to defaults
Expand Down Expand Up @@ -79,15 +79,15 @@ const ObserveHeader = ({
<div className="text-mid">
<Link to={'/gateways'}>Gateways</Link>
</div>
<HeaderSeparatorIcon className="size-4"/>
<HeaderSeparatorIcon className="size-4" />
{gateway ? (
<Link className="text-mid" to={`/gateways/${ownerId}`}>
{gateway.settings.label}
</Link>
) : (
<Placeholder />
)}
<HeaderSeparatorIcon className="size-4"/>
<HeaderSeparatorIcon className="size-4" />
<Link className="text-mid" to={`/gateways/${ownerId}/reports`}>
Observe
</Link>
Expand All @@ -112,7 +112,7 @@ const ObserveHeader = ({
onChange={(e) => {
setArnsNamesToSearch(e.target.value);
}}
></input>
/>

<div
className={
Expand Down

0 comments on commit 9b11259

Please sign in to comment.