Skip to content

Commit 34d84ab

Browse files
style: auto-format (ruff + oxfmt) [pre-commit.ci]
1 parent 2829a09 commit 34d84ab

2 files changed

Lines changed: 4 additions & 20 deletions

File tree

apps/geolibre-desktop/src/components/panels/DashboardPanel.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,7 @@ function WidgetCard({
586586
* chips. In single mode clicking a value toggles it as the only selected value.
587587
* In multi mode each chip toggles independently. Cross-filtering is not yet
588588
* wired; this prepares the UI and selection state for it. */
589-
function SelectorValues({
590-
values,
591-
multiple,
592-
}: {
593-
values: string[];
594-
multiple: boolean;
595-
}) {
589+
function SelectorValues({ values, multiple }: { values: string[]; multiple: boolean }) {
596590
const [selected, setSelected] = useState<Set<string>>(new Set());
597591

598592
const toggle = (value: string) => {
@@ -634,13 +628,7 @@ function SelectorValues({
634628
/** Renders the list widget body: a compact scrollable HTML table showing the
635629
* selected columns for the top-N features (by sortBy/sortDir, limited by limit).
636630
* Like the selector, this does not yet participate in cross-filtering. */
637-
function ListTable({
638-
fields,
639-
rows,
640-
}: {
641-
fields: string[];
642-
rows: Record<string, unknown>[];
643-
}) {
631+
function ListTable({ fields, rows }: { fields: string[]; rows: Record<string, unknown>[] }) {
644632
return (
645633
<table className="w-full border-collapse text-xs">
646634
<thead>

apps/geolibre-desktop/src/components/panels/WidgetEditorDialog.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,16 +430,12 @@ export function WidgetEditorDialog({
430430
onChange={setSortBy}
431431
/>
432432
<div className="grid gap-1.5">
433-
<Label htmlFor="widget-list-sortdir">
434-
{t("dashboard.editor.sortDir")}
435-
</Label>
433+
<Label htmlFor="widget-list-sortdir">{t("dashboard.editor.sortDir")}</Label>
436434
<Select
437435
id="widget-list-sortdir"
438436
className="w-28"
439437
value={sortDir}
440-
onChange={(event) =>
441-
setSortDir(event.target.value as "asc" | "desc")
442-
}
438+
onChange={(event) => setSortDir(event.target.value as "asc" | "desc")}
443439
>
444440
<option value="asc">{t("dashboard.editor.ascending")}</option>
445441
<option value="desc">{t("dashboard.editor.descending")}</option>

0 commit comments

Comments
 (0)