diff --git a/admin/src/features/configuration/GroupSourcesEditor.tsx b/admin/src/features/configuration/GroupSourcesEditor.tsx index a0a5291..c13315c 100644 --- a/admin/src/features/configuration/GroupSourcesEditor.tsx +++ b/admin/src/features/configuration/GroupSourcesEditor.tsx @@ -3,7 +3,8 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import * as stylex from "@stylexjs/stylex"; import { groupSourcesPutMutation, groupSourcesQuery } from "@/lib/queries"; import type { Blocklist } from "@/lib/types"; -import { sameSet, toggleSource } from "./sourceSet"; +import { sameSet } from "./sourceSet"; +import Checkbox, { CheckboxGroup } from "@/ui/Checkbox"; import InlineError from "@/lib/InlineError"; import { styles as shared } from "@/ui/styles"; import { colors } from "@/ui/tokens.stylex"; @@ -28,13 +29,6 @@ const styles = stylex.create({ flexDirection: "column", gap: "0.25rem", }, - checkboxLabel: { - display: "inline-flex", - alignItems: "center", - gap: "0.5rem", - fontSize: "0.875rem", - lineHeight: "1.25rem", - }, buttonRow: { marginTop: "0.75rem", display: "flex", @@ -66,21 +60,22 @@ export default function GroupSourcesEditor({ groupId, blocklists }: Props) { return (
- + {/* The section's own "Assigned sources" heading is the visible label; a + Label here would put the same words on screen twice. Ids cross the + React Aria boundary as strings, the same convention as Select. */} + setSelected(values.map(Number).sort((a, b) => a - b))} + > + +