Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet-template): add UserSignedExtensionInputs component #1924

Merged
merged 1 commit into from Mar 4, 2024

Conversation

kratico
Copy link
Contributor

@kratico kratico commented Mar 1, 2024

image

@kratico kratico requested a review from ryanleecode March 1, 2024 19:53
onChange(value: UserSignedExtensions["ChargeTransactionPayment"]): void
defaultValue?: number
}
const TipInput = ({ onChange, defaultValue = 0 }: TipInputProps) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should make sure its >= 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a min={0} in the <input>

<input
          type="number"
          defaultValue={Number(defaultValue)}
          // @ts-expect-error TODO: improve bigint types
          onChange={(e) => onChange(+e.target.value)}
          min={0}
          className="w-full py-2 px-3 border rounded leading-tigh"
        />

@kratico kratico force-pushed the feat/basic-signed-extension branch from 11999ab to 891e9e6 Compare March 4, 2024 13:02
@kratico kratico merged commit 5de819f into main Mar 4, 2024
13 checks passed
@kratico kratico deleted the feat/basic-signed-extension branch March 4, 2024 13:10
@kratico
Copy link
Contributor Author

kratico commented Mar 4, 2024

#1894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants