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(wrw): add api key in bitcoin unsigned sweep form #328

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/containers/BuildUnsignedSweepCoin/BitcoinForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as Yup from 'yup';
import { Button, FormikTextfield } from '~/components';

const validationSchema = Yup.object({
apiKey: Yup.string().required(),
userKey: Yup.string().required(),
userKeyId: Yup.string(),
backupKey: Yup.string().required(),
Expand All @@ -26,6 +27,7 @@ export function BitcoinForm({ onSubmit }: BitcoinFormProps) {
const formik = useFormik<BitcoinFormValues>({
onSubmit,
initialValues: {
apiKey: '',
userKey: '',
userKeyId: '',
backupKey: '',
Expand Down Expand Up @@ -99,6 +101,14 @@ export function BitcoinForm({ onSubmit }: BitcoinFormProps) {
Width="fill"
/>
</div>
<div className="tw-mb-4">
<FormikTextfield
HelperText="An Api-Key Token from blockchair.com required for recovery of this coin."
Label="API Key"
name="apiKey"
Width="fill"
/>
</div>
<div className="tw-flex tw-flex-col-reverse sm:tw-justify-between sm:tw-flex-row tw-gap-1 tw-mt-4">
<Button Tag={Link} to="/" Variant="secondary" Width="hug">
Cancel
Expand Down
Loading