MCPcopy Create free account
hub / github.com/dailydotdev/apps / isSettingsPath

Function isSettingsPath

packages/shared/src/components/shell/shellNav.ts:304–311  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

302};
303
304export const isSettingsPath = (pathname: string): boolean => {
305 const path = withoutLayoutVariantPrefix(pathname ?? '');
306 return (
307 path.startsWith('/settings') ||
308 path.startsWith('/notifications/settings') ||
309 (path.startsWith('/feeds/') && path.endsWith('/edit'))
310 );
311};
312
313// Back past every entry of the current level: the nearest earlier page
314// that is not one of them, in one history move so nothing is left to

Callers 1

FeedSettingsEditHeaderFunction · 0.90

Calls 1

Tested by

no test coverage detected