Skip to content

Commit

Permalink
feat(wrw): add api key in wrw bitcoin form
Browse files Browse the repository at this point in the history
  • Loading branch information
alia-bitgo committed Aug 23, 2023
1 parent b60a7e6 commit 7110674
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 7110674

Please sign in to comment.