github.com/grafana/pyroscope@v1.18.0/public/app/pages/routes.ts (about) 1 export enum ROUTES { 2 SINGLE_VIEW = '/', 3 } 4 5 // isRouteActive detects whether a route is active 6 // Notice that it does exact matches, so subpaths may not work correctly 7 export function isRouteActive(pathname: string, route: ROUTES) { 8 return pathname === route; 9 }