板块资金流向默认按升序排序
This commit is contained in:
@@ -21,7 +21,7 @@ type SortKey = "mainNetInflow" | "changePercent";
|
|||||||
function SectorsPage() {
|
function SectorsPage() {
|
||||||
const [tab, setTab] = useState<SectorType>("industry");
|
const [tab, setTab] = useState<SectorType>("industry");
|
||||||
const [sortKey, setSortKey] = useState<SortKey>("mainNetInflow");
|
const [sortKey, setSortKey] = useState<SortKey>("mainNetInflow");
|
||||||
const [asc, setAsc] = useState(false);
|
const [asc, setAsc] = useState(true);
|
||||||
|
|
||||||
const { data = [], isLoading, isFetching, refetch } = useQuery({
|
const { data = [], isLoading, isFetching, refetch } = useQuery({
|
||||||
queryKey: ["sectors", tab],
|
queryKey: ["sectors", tab],
|
||||||
|
|||||||
Reference in New Issue
Block a user