MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / applicantDialogPath

Function applicantDialogPath

src/Components/RouteUtils.js:37–40  ·  view source on GitHub ↗
(pathname, applicantId)

Source from the content-addressed store, hash-verified

35}
36
37export function applicantDialogPath(pathname, applicantId) {
38 const basePath = safeLocalPath(pathname, "/datapoints").replace(/\/applicant\/[^/]+\/?$/, "");
39 return `${basePath.replace(/\/$/, "")}/applicant/${encodePathSegment(applicantId)}`;
40}
41
42export function favoritesProgramPath(programId) {
43 return `/favorites/${encodePathSegment(programId)}`;

Callers 1

renderCellFunction · 0.90

Calls 2

safeLocalPathFunction · 0.85
encodePathSegmentFunction · 0.85

Tested by

no test coverage detected