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 wrw bitcoin form #319

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/NonBitGoRecoveryCoin/BitcoinForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
const validationSchema = Yup.object({
backupKey: Yup.string().required(),
bitgoKey: Yup.string().required(),
apiKey: Yup.string().required(),
krsProvider: Yup.string()
.oneOf(['keyternal', 'bitgoKRSv2', 'dai'])
.label('Key Recovery Service'),
Expand All @@ -33,6 +34,7 @@ export function BitcoinForm({ onSubmit }: BitcoinFormProps) {
const formik = useFormik<BitcoinFormValues>({
onSubmit,
initialValues: {
apiKey: '',
backupKey: '',
bitgoKey: '',
krsProvider: '',
Expand Down Expand Up @@ -120,6 +122,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