MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / pageUrl

Function pageUrl

apps/webapp/app/components/primitives/Pagination.tsx:55–61  ·  view source on GitHub ↗
(location: ReturnType<typeof useLocation>, page: number)

Source from the content-addressed store, hash-verified

53}
54
55function pageUrl(location: ReturnType<typeof useLocation>, page: number): string {
56 const search = new URLSearchParams(location.search);
57
58 search.set("page", String(page));
59
60 return location.pathname + "?" + search.toString();
61}
62
63const baseClass =
64 "flex items-center justify-center border border-transparent h-8 w-8 text-xs font-medium transition text-text-dimmed rounded-sm";

Callers 2

PaginationControlsFunction · 0.85
PageLinkComponentFunction · 0.85

Calls 2

toStringMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…