feat: dynamic checkbox id for settings
This commit is contained in:
parent
74c501a7bd
commit
2cb23529ef
1 changed files with 3 additions and 3 deletions
|
@ -21,11 +21,11 @@ const { toggle } = Astro.props;
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
enabledSettings.map(
|
enabledSettings.map(
|
||||||
(settings) =>
|
(settings, index) =>
|
||||||
settings !== "" && (
|
settings !== "" && (
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<input type="checkbox" id="settings-2" name="settings-2" />
|
<input type="checkbox" id={`settings-${index}`} name="settings-2" />
|
||||||
<label for="settings-2">{featureLabels[settings]}</label>
|
<label for={`settings-${index}`}>{featureLabels[settings]}</label>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue