diff --git a/frontend/src/components/dashboard/PublicationsTable.jsx b/frontend/src/components/dashboard/PublicationsTable.jsx index 63509f4..3aeaec6 100644 --- a/frontend/src/components/dashboard/PublicationsTable.jsx +++ b/frontend/src/components/dashboard/PublicationsTable.jsx @@ -1,5 +1,6 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { AlertIcon, ChevronDownIcon, FilterIcon, SearchIcon, SparkleIcon } from "../ui/Icons"; +import { CustomSelect } from "../ui/CustomSelect"; import { Spinner } from "../ui/Spinner"; import { Badge } from "../ui/Badge"; @@ -314,20 +315,16 @@ export function PublicationsTable({ > Desde año - + options={availableYears.map((y) => ({ + value: String(y), + label: String(y), + }))} + />
- + options={availableYears.map((y) => ({ + value: String(y), + label: String(y), + }))} + />
{hasYearFilter && ( ))} diff --git a/frontend/src/components/ui/CustomSelect.jsx b/frontend/src/components/ui/CustomSelect.jsx new file mode 100644 index 0000000..8597d01 --- /dev/null +++ b/frontend/src/components/ui/CustomSelect.jsx @@ -0,0 +1,86 @@ +import { useEffect, useMemo, useRef, useState } from "react"; +import { ChevronDownIcon } from "./Icons"; + +/** + * Desplegable personalizado (sustituto del `