(pathname: string)
| 305 | }; |
| 306 | |
| 307 | export 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 |
no test coverage detected