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

Function isSettingsPath

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

Source from the content-addressed store, hash-verified

305};
306
307export const isSettingsPath = (pathname: string): boolean => {
308 const path = withoutLayoutVariantPrefix(pathname ?? '');
309 return (
310 path.startsWith('/settings') ||
311 path.startsWith('/notifications/settings') ||
312 (path.startsWith('/feeds/') && path.endsWith('/edit'))
313 );
314};
315
316// Back past every entry of the current level: the nearest earlier page
317// 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