UI: Replace " with ' in ImportConfigModal.tsx

This commit is contained in:
vakarisz 2022-06-30 12:10:00 +03:00
parent 53626c3a79
commit 565f02a534
1 changed files with 6 additions and 6 deletions

View File

@ -116,7 +116,7 @@ const ConfigImportModal = (props: Props) => {
try { try {
importContents = JSON.parse(event.target.result); importContents = JSON.parse(event.target.result);
} catch (e){ } catch (e){
setErrorMessage("File is not in a valid json format"); setErrorMessage('File is not in a valid json format');
return return
} }
setConfigEncrypted(importContents['metadata']['encrypted']); setConfigEncrypted(importContents['metadata']['encrypted']);
@ -160,9 +160,9 @@ const ConfigImportModal = (props: Props) => {
<div className={`mb-3 config-import-option`}> <div className={`mb-3 config-import-option`}>
{showVerificationDialog()} {showVerificationDialog()}
<Form> <Form>
<Form.File id="importConfigFileSelector" <Form.File id='importConfigFileSelector'
label="Please choose a configuration file" label='Please choose a configuration file'
accept=".conf" accept='.conf'
onChange={uploadFile} onChange={uploadFile}
className={'file-input'} className={'file-input'}
key={fileFieldKey}/> key={fileFieldKey}/>
@ -196,8 +196,8 @@ const PasswordInput = (props: {
return ( return (
<div className={'config-import-password-input'}> <div className={'config-import-password-input'}>
<p>File is protected. Please enter the password:</p> <p>File is protected. Please enter the password:</p>
<Form.Control type="password" <Form.Control type='password'
placeholder="Password" placeholder='Password'
onChange={evt => (props.onChange(evt.target.value))}/> onChange={evt => (props.onChange(evt.target.value))}/>
</div> </div>
) )