Update index.tsx

This commit is contained in:
Stefan Pejcic 2024-06-01 14:39:22 +02:00 committed by GitHub
parent 56c566c3d6
commit f4a96e2310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,18 +70,19 @@ const Install: React.FC = () => {
<h2>Advanced Install Settings:</h2>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{/* Input fields for advanced install settings */}
{/* Example for hostname */}
<div>
<label htmlFor="hostname">Hostname:</label>
{Object.entries(installOptions).map(([key, value]) => (
<div key={key}>
<label htmlFor={key}>{key.replace(/([A-Z])/g, ' $1').toUpperCase()}:</label>
<input
type="text"
id="hostname"
name="hostname"
value={installOptions.hostname}
type={typeof value === "boolean" ? "checkbox" : "text"}
id={key}
name={key}
checked={typeof value === "boolean" ? value : undefined}
value={typeof value === "boolean" ? undefined : value}
onChange={handleInputChange}
/>
</div>
{/* Repeat similar structure for other options */}
))}
</div>
</div>