mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): add daily challenges (#60867)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user