freeCodeCamp/client/utils/gatsby
Oliver Eyton-Williams e955bccfcf
refactor: replace isChallenge (#50033)
* refactor: replace isChallenge

Determining if a path is a challenge by the number of path segments is
brittle and we ended up writing bizarre things like
isChallenge(nextChallengePath).

This should be a little more robust. i.e. if we need to know if a page
is a challenge, we can check the challengeMeta

* test: update tests with new logic
2023-04-13 15:25:12 +00:00
..
challenge-page-creator.js refactor: replace isChallenge (#50033) 2023-04-13 15:25:12 +00:00
index.js feat(client): ts-migrate client/utils/** (#42823) 2021-08-09 10:30:31 +02:00
layout-selector.test.tsx refactor: replace isChallenge (#50033) 2023-04-13 15:25:12 +00:00
layout-selector.tsx refactor: replace isChallenge (#50033) 2023-04-13 15:25:12 +00:00