Change placeholder according InputType

This commit is contained in:
He4eT 2021-02-28 03:31:04 +05:00
commit a16e38eca8

View file

@ -69,11 +69,18 @@ export default function ({ currentWindow, inputType, sendMessage }) {
}
}
const placeholder = {
char: 'Press any key',
line: ' > '
}
return (
<input {...inputHandlers[inputType]}
className='inputBox'
ref={inputEl}
value={inputText}
autofocus={true}
placeholder={placeholder[inputType]}
autofocus
onInput={({ target: { value } }) => setInputText(value)}
type='text' />
)