Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add balance validation when creating new pull #107

Merged
merged 3 commits into from May 18, 2022

Conversation

LuizAsFight
Copy link
Contributor

@LuizAsFight LuizAsFight commented May 18, 2022

  • Added Balance information over Coin Selector.
  • Added Max button to put balance value in the input.
  • Change Confirm button, disabling it and including balance feedback when needed
Screen.Recording.2022-05-18.at.17.58.08.mov

@LuizAsFight LuizAsFight self-assigned this May 18, 2022
@LuizAsFight LuizAsFight added bug Something isn't working enhancement New feature or request labels May 18, 2022
const fromInput = useCoinInput({
coin: coinFrom,
coins: getOtherCoins([coinFrom, coinTo]),
onChangeCoin: (coin: Coin) => setCoins([coin, coinTo]),
coinBalance: fromCoinBalance
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to pass this here, just use the inside functions of the component

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coinBalance is needed to know wallet balance

client/src/components/CoinInput.tsx Show resolved Hide resolved
client/src/components/CoinInput.tsx Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
2 participants