feat(dashboard): add scrape portals widget to dashboard
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Surface AI pipeline portal sources on the dashboard instead of a standalone page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { API_ENDPOINTS, portalsService } from "@/lib/api";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useMemo } from "react";
|
||||
|
||||
export const useGetPortalsQuery = () => {
|
||||
const queryKey = useMemo(() => [API_ENDPOINTS.PORTALS.GET], []);
|
||||
return useQuery({
|
||||
queryKey,
|
||||
queryFn: () => portalsService.getPortals(),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user