web/settings: convert LanguageDropdown to universal SettingsDropdown
This commit is contained in:
@@ -39,16 +39,14 @@
|
||||
updateSetting({
|
||||
[settingContext]: {
|
||||
[settingId]: !isEnabled,
|
||||
},
|
||||
})}
|
||||
}
|
||||
})
|
||||
}
|
||||
>
|
||||
<h4 class="toggle-title">{title}</h4>
|
||||
<Toggle enabled={isEnabled} />
|
||||
</button>
|
||||
<!--
|
||||
description is repeated here because there may be several toggles per settings category,
|
||||
and each of them needs its own description. this is intended. don't "clean it up".
|
||||
-->
|
||||
|
||||
{#if description}
|
||||
<div class="subtext toggle-description">{description}</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user