Skip to content

Commit

Permalink
Merge pull request #319 from BitGo/WP-339-add-api-key-in-wrw-bitcoin-…
Browse files Browse the repository at this point in the history
…form

feat(wrw): add api key in wrw bitcoin form
  • Loading branch information
alia-bitgo authored Aug 23, 2023
2 parents b60a7e6 + 7110674 commit 0dffe03
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 0dffe03

Please sign in to comment.