feat(client): add daily challenges (#60867)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Tom
2025-07-28 13:08:10 -05:00
committed by GitHub
parent 2cdd62b00b
commit bde1e6f81b
43 changed files with 1607 additions and 114 deletions
+5 -1
View File
@@ -20,7 +20,10 @@ export default function layoutSelector({
location: { pathname }
} = props;
const isChallenge = !!props.pageContext?.challengeMeta;
const isDailyChallenge =
props.location.pathname === '/learn/daily-coding-challenge';
const isChallenge = !!props.pageContext?.challengeMeta || isDailyChallenge;
if (element.type === FourOhFourPage) {
return (
@@ -38,6 +41,7 @@ export default function layoutSelector({
pathname={pathname}
showFooter={false}
isChallenge={true}
isDailyChallenge={isDailyChallenge}
usesMultifileEditor={
props.data?.challengeNode?.challenge?.usesMultifileEditor
}