[Glitch] Add Select component

Port 218ca36653 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-02-03 15:54:12 +01:00
1 parent dacbd20081
commit 3c2a06dc24
5 files changed
+127 -38

No files matched your search

@@ -8,6 +8,7 @@ import { createSelector } from '@reduxjs/toolkit';
import type { List as ImmutableList } from 'immutable';
import type { SelectItem } from '@/flavours/glitch/components/dropdown_selector';
import { Select } from '@/flavours/glitch/components/form_fields';
import type { RootState } from '@/flavours/glitch/store';
import { useAppSelector } from '@/flavours/glitch/store';
@@ -104,19 +105,17 @@ export const RulesSection: FC<RulesSectionProps> = ({ isLoading = false }) => {
defaultMessage='Language'
/>
</label>
<div className='select-wrapper'>
<select onChange={handleLocaleChange} id='language-select'>
{localeOptions.map((option) => (
<option
key={option.value}
value={option.value}
selected={option.value === selectedLocale}
>
{option.text}
</option>
))}
</select>
</div>
<Select onChange={handleLocaleChange} id='language-select'>
{localeOptions.map((option) => (
<option
key={option.value}
value={option.value}
selected={option.value === selectedLocale}
>
{option.text}
</option>
))}
</Select>
</div>
)}
</Section>