commit 04d55d15f20200f45c5dad4ab2054c09c426d180
parent 9316f178fa73bb9b42a62eaf5d499a1d3de86346
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 24 May 2021 11:22:30 -0300
fixing lint
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/frontend/src/components/modal/index.tsx b/packages/frontend/src/components/modal/index.tsx
@@ -93,7 +93,7 @@ export function ClearConfirmModal({ description, onCancel, onClear, onConfirm, c
{children}
</section>
<footer class="modal-card-foot">
- {onClear && <button class="button is-danger" onClick={onClear} disabled={onClear === undefined} ><Translate>Clear</Translate></button> }
+ {onClear && <button class="button is-danger" onClick={onClear} disabled={onClear === undefined} ><Translate>Clear</Translate></button>}
<div class="buttons is-right" style={{ width: '100%' }}>
<button class="button " onClick={onCancel} ><Translate>Cancel</Translate></button>
<button class="button is-info" onClick={onConfirm} disabled={onConfirm === undefined} ><Translate>Confirm</Translate></button>
@@ -153,9 +153,9 @@ export function UpdateTokenModal({ onCancel, onClear, onConfirm, oldToken }: Upd
<div class="column" />
<div class="column is-four-fifths" >
<FormProvider errors={errors} object={form} valueHandler={setValue}>
- { oldToken && <Input<State> name="old_token" label={i18n`Old token`} tooltip={i18n`token currently in use`} inputType="password"/> }
- <Input<State> name="new_token" label={i18n`New token`} tooltip={i18n`next token to be used`} inputType="password"/>
- <Input<State> name="repeat_token" label={i18n`Repeat token`} tooltip={i18n`confirm the same token`} inputType="password"/>
+ {oldToken && <Input<State> name="old_token" label={i18n`Old token`} tooltip={i18n`token currently in use`} inputType="password" />}
+ <Input<State> name="new_token" label={i18n`New token`} tooltip={i18n`next token to be used`} inputType="password" />
+ <Input<State> name="repeat_token" label={i18n`Repeat token`} tooltip={i18n`confirm the same token`} inputType="password" />
</FormProvider>
<p><Translate>Clearing the auth token will mean public access to the instance</Translate></p>
</div>