Skip to content

Commit

Permalink
Hotfix - clean input after staking and updated title text (#78)
Browse files Browse the repository at this point in the history
* update text explaination and improve input reset logic

* update font weight
  • Loading branch information
jeremy-babylonlabs authored Aug 16, 2024
1 parent 2757296 commit 61b2e05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.2.33",
"version": "0.2.34",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export const FinalityProviders: React.FC<FinalityProvidersProps> = ({

return (
<>
<p>Select a finality provider.</p>
<p>
<strong>Step-1:</strong> Select a finaltiy provider
</p>
<div className="hidden gap-2 px-4 lg:grid lg:grid-cols-stakingFinalityProvidersDesktop">
<p>Finality Provider</p>
<p>BTC PK</p>
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/Staking/Form/StakingAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export const StakingAmount: React.FC<StakingAmountProps> = ({
} else {
setError("");
onStakingAmountSatChange(satoshis);
setValue(maxDecimals(satoshiToBtc(satoshis), 8).toString());
}
}, [
btcWalletBalanceSat,
Expand Down Expand Up @@ -126,7 +125,7 @@ export const StakingAmount: React.FC<StakingAmountProps> = ({
</div>
<input
type="string"
className={`no-focus input input-bordered w-full ${error && "input-error"}`}
className={`no-focus input input-bordered w-full ${error ? "input-error" : ""}`}
value={value}
onChange={handleChange}
onBlur={handleBlur}
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/Staking/Staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,9 @@ export const Staking: React.FC<StakingProps> = ({

return (
<>
<p>Set up staking terms</p>
<p>
<strong>Step-2:</strong> Set up staking terms
</p>
<div className="flex flex-1 flex-col">
<div className="flex flex-1 flex-col">
<StakingTime
Expand Down

0 comments on commit 61b2e05

Please sign in to comment.