Docs/update add and remove signer labels (#1844)

* docs: update labels for add signer tool

* docs: fix remove signer labels

* chore: consistent capitalisation

* style: formating

Co-authored-by: Dexter <dexter.edwards93@gmail.com>
This commit is contained in:
candida-d 2022-10-24 18:27:20 +01:00 committed by GitHub
parent 786b85fde2
commit e2d4a6d0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -76,7 +76,9 @@ export const AddSignerForm = () => {
<FormGroup <FormGroup
label={t('Add signer')} label={t('Add signer')}
labelFor="add-signer-input" labelFor="add-signer-input"
labelDescription={t('Public key of the signer to add')} labelDescription={t(
'Node ID of the signer to add to the multisig control'
)}
className="max-w-xl" className="max-w-xl"
> >
<div className="grid grid-cols-[1fr,auto] gap-2"> <div className="grid grid-cols-[1fr,auto] gap-2">
@ -97,7 +99,7 @@ export const AddSignerForm = () => {
{error && ( {error && (
<InputError intent="danger"> <InputError intent="danger">
{error?.message.includes('InvalidArgument') {error?.message.includes('InvalidArgument')
? t('Invalid node id') ? t('Invalid node ID')
: error?.message} : error?.message}
</InputError> </InputError>
)} )}

View File

@ -76,7 +76,9 @@ export const RemoveSignerForm = () => {
<FormGroup <FormGroup
label={t('Remove signer')} label={t('Remove signer')}
labelFor="remove-signer-input" labelFor="remove-signer-input"
labelDescription={t('Public key of the signer to remove')} labelDescription={t(
'Node ID of the signer to remove from the multisig control'
)}
className="max-w-xl" className="max-w-xl"
> >
<div className="grid grid-cols-[1fr,auto] gap-2"> <div className="grid grid-cols-[1fr,auto] gap-2">
@ -97,15 +99,13 @@ export const RemoveSignerForm = () => {
{error && ( {error && (
<InputError intent="danger"> <InputError intent="danger">
{error?.message.includes('InvalidArgument') {error?.message.includes('InvalidArgument')
? t('Invalid node id') ? t('Invalid node ID')
: error?.message} : error?.message}
</InputError> </InputError>
)} )}
{bundleNotFound && !error && ( {bundleNotFound && !error && (
<InputError intent="danger"> <InputError intent="danger">
{t( {t('Bundle was not found, confirm the node ID is correct')}
'Bundle was not found, are you sure this validator needs to be removed?'
)}
</InputError> </InputError>
)} )}
</div> </div>