Added value keys to the ConfigurationRow.jsx
This commit is contained in:
parent
43938526a5
commit
d734b07109
@ -11,7 +11,10 @@ export const ConfigurationRow = ({text, icon = faSquareRootVariable, type = "inp
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{type === "select" && <select className="input-field" value={value} onChange={(e) => setValue(e.target.value)}>
|
{type === "select" && <select className="input-field" value={value} onChange={(e) => setValue(e.target.value)}>
|
||||||
{options.map((option) => <option key={option}>{option}</option>)}
|
{options.map((option) =>
|
||||||
|
option.value ? <option value={option.value} key={option.value}>{option.text}</option>
|
||||||
|
: <option key={option}>{option}</option>
|
||||||
|
)}
|
||||||
</select>}
|
</select>}
|
||||||
|
|
||||||
{type === "input" && <input className="input-field" type="text" placeholder={text} value={value}
|
{type === "input" && <input className="input-field" type="text" placeholder={text} value={value}
|
||||||
|
Reference in New Issue
Block a user