Skip to content

Commit

Permalink
Fix import button text + adjust size
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjort committed Aug 29, 2023
1 parent 35f11aa commit c8f6067
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function VerifiableCredentialImport() {
<FileInput
className="verifiable-credential-import__import"
onChange={handleImport}
buttonTitle="import"
buttonTitle={t('importButton')}
value={null}
/>
{error && <p className="m-h-10 form-error-message">{error}</p>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const t: typeof en = {
title: 'Importer Web3 ID Credentials',
noImported: 'Ingen Web3 ID Credentials blev importeret',
error: 'Det var ikke muligt at importere den valgte fil. Filen skal være en backup lavet med en samme seed phrase.',
importButton: 'Vælg fil at importere',
close: 'Luk',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export default {
title: 'Import Web3 ID Credentials',
noImported: 'No Web3 ID Credentials were imported',
error: 'Unable to import the chosen file. The file must be a backup created with the same seed phrase.',
importButton: 'Select file to import',
close: 'Close',
};
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const FileInput = forwardRef<FileInputRef, FileInputProps>(
{f?.name}
</div>
))}
<Button className="form-file-input__button" width="narrow" disabled={disabled}>
<Button className="form-file-input__button" disabled={disabled}>
{buttonTitle}
</Button>
<input
Expand Down

0 comments on commit c8f6067

Please sign in to comment.