mask api key inputs in builder io form (#792)

This commit is contained in:
Lukasz Ostrowski 2023-07-20 11:02:34 +02:00 committed by GitHub
parent 5b2976306e
commit 457865994e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-app-cms-v2": patch
---
Made Builder.io api keys inputs type of "password" so they are masked now

View file

@ -46,6 +46,7 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
<Box display={"grid"} gap={4} marginY={4}>
<Text variant="heading">Provide connection details</Text>
<Input
type="password"
required
control={control}
name="privateApiKey"
@ -60,6 +61,7 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
}
/>
<Input
type="password"
required
control={control}
name="publicApiKey"