diff --git a/web/src/components/RewardablePuzzle/RewardablePuzzle/RewardablePuzzle.tsx b/web/src/components/RewardablePuzzle/RewardablePuzzle/RewardablePuzzle.tsx index 0bdebfad1..27b7d224e 100644 --- a/web/src/components/RewardablePuzzle/RewardablePuzzle/RewardablePuzzle.tsx +++ b/web/src/components/RewardablePuzzle/RewardablePuzzle/RewardablePuzzle.tsx @@ -1,12 +1,12 @@ import { useEffect, useState } from 'react' -// import { Transition } from '@headlessui/react' -// import XCircleIcon from '@heroicons/react/24/outline/XCircleIcon' +import { Transition } from '@headlessui/react' +import XCircleIcon from '@heroicons/react/24/outline/XCircleIcon' import { IK_LOGO_FULL_URL } from '@infinity-keys/constants' import { buildUrlString } from '@infinity-keys/core' import type { FindRewardablePuzzleBySlug, - // PuzzleRequirements, + PuzzleRequirements, } from 'types/graphql' import { routes, useLocation } from '@redwoodjs/router' @@ -21,7 +21,7 @@ import ImagesContainer from 'src/components/PuzzleLayout/ImageContainer/ImagesCo import SectionContainer from 'src/components/PuzzleLayout/SectionContainer/SectionContainer' import TextContainer from 'src/components/PuzzleLayout/TextContainer/TextContainer' import Seo from 'src/components/Seo/Seo' -// import { requirementsLookup } from 'src/lib/puzzleRequirements' +import { requirementsLookup } from 'src/lib/puzzleRequirements' import { rewardableLandingRoute } from 'src/lib/urlBuilders' import { useGlobalInfo } from 'src/providers/globalInfo/globalInfo' @@ -67,9 +67,9 @@ const Rewardable = ({ rewardable }: Props) => { }) const { isAuthenticated } = useAuth() - // const [showOverlay, setShowOverlay] = useState(false) - // const [currentOverlayContent, setCurrentOverlayContent] = - // useState(null) + const [showOverlay, setShowOverlay] = useState(false) + const [currentOverlayContent, setCurrentOverlayContent] = + useState(null) const { pageHeading, setPageHeading } = useGlobalInfo() useEffect(() => { @@ -158,12 +158,12 @@ const Rewardable = ({ rewardable }: Props) => {

Get Ready!

- {/*

+

Check the items below before you jump in. -

*/} +

- {/*
+
{rewardable.puzzle?.requirements?.map((req) => req ? ( ) : null )} -
*/} +
- {/* { - */} + ) ) : ( diff --git a/web/src/components/StepPageLayout/StepPageLayout.tsx b/web/src/components/StepPageLayout/StepPageLayout.tsx index fe8e02fce..f205d56c6 100644 --- a/web/src/components/StepPageLayout/StepPageLayout.tsx +++ b/web/src/components/StepPageLayout/StepPageLayout.tsx @@ -13,6 +13,7 @@ interface OverlayContent { } interface StepPageProps extends PropsWithChildren { showOverlay?: boolean + disableModal?: boolean overlayContent?: OverlayContent setShowOverlay?: (b: boolean) => void } @@ -21,6 +22,7 @@ const StepPageLayout = ({ showOverlay, overlayContent, setShowOverlay, + disableModal, children, }: StepPageProps) => { const hasOverlay = @@ -37,8 +39,12 @@ const StepPageLayout = ({ {hasOverlay && (