fix: fix react warnings

This commit is contained in:
Anoop M D 2022-01-23 17:14:46 +05:30
parent 2431c0ac03
commit b4599b65b9
2 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ const QueryParams = () => {
<input <input
type="text" type="text"
name="key" name="key"
autocomplete="off" autoComplete="off"
defaultValue={params[index].key} defaultValue={params[index].key}
onChange={(e) => handleParamValueChange(e, index, 'key')} onChange={(e) => handleParamValueChange(e, index, 'key')}
/> />
@ -61,7 +61,7 @@ const QueryParams = () => {
<input <input
type="text" type="text"
name="value" name="value"
autocomplete="off" autoComplete="off"
defaultValue={params[index].value} defaultValue={params[index].value}
onChange={(e) => handleParamValueChange(e, index, 'value')} onChange={(e) => handleParamValueChange(e, index, 'value')}
/> />
@ -70,7 +70,7 @@ const QueryParams = () => {
<input <input
type="text" type="text"
name="description" name="description"
autocomplete="off" autoComplete="off"
defaultValue={params[index].description} defaultValue={params[index].description}
onChange={(e) => handleParamValueChange(e, index, 'description')} onChange={(e) => handleParamValueChange(e, index, 'description')}
/> />

View File

@ -52,7 +52,7 @@ const RequestHeaders = () => {
<input <input
type="text" type="text"
name="key" name="key"
autocomplete="off" autoComplete="off"
defaultValue={headers[index].key} defaultValue={headers[index].key}
onChange={(e) => handleHeaderValueChange(e, index, 'key')} onChange={(e) => handleHeaderValueChange(e, index, 'key')}
/> />
@ -61,7 +61,7 @@ const RequestHeaders = () => {
<input <input
type="text" type="text"
name="value" name="value"
autocomplete="off" autoComplete="off"
defaultValue={headers[index].value} defaultValue={headers[index].value}
onChange={(e) => handleHeaderValueChange(e, index, 'value')} onChange={(e) => handleHeaderValueChange(e, index, 'value')}
/> />
@ -70,7 +70,7 @@ const RequestHeaders = () => {
<input <input
type="text" type="text"
name="description" name="description"
autocomplete="off" autoComplete="off"
defaultValue={headers[index].description} defaultValue={headers[index].description}
onChange={(e) => handleHeaderValueChange(e, index, 'description')} onChange={(e) => handleHeaderValueChange(e, index, 'description')}
/> />