Skip to content
Snippets Groups Projects
Commit e5988c6d authored by Romain CREY's avatar Romain CREY
Browse files

WIP challenge flow - finished challenge page

parent 725d1da1
No related branches found
No related tags found
2 merge requests!15Merge Dev to Master,!8Features/us142 challenge start redirect
......@@ -5,7 +5,7 @@ import CozyBar from 'components/ContainerComponents/CozyBar/CozyBar'
import Header from 'components/ContainerComponents/Header/Header'
import Content from 'components/ContainerComponents/Content/Content'
import { history } from 'components/ContainerComponents/ViewContainer/ViewContainer'
import { ChallengeType } from 'services/dataChallengeContracts'
import { ChallengeType, UserChallenge } from 'services/dataChallengeContracts'
import { Redirect } from 'react-router-dom'
import StyledSpinner from 'components/CommonKit/Spinner/StyledSpinner'
import StyledIconButton from 'components/CommonKit/IconButton/StyledIconButton'
......@@ -30,9 +30,7 @@ const AvailableChallengeDetailsViewContainer: React.FC<AvailableChallengeDetails
const t = props.t
const client = props.client
const challengeManager = new ChallengeManager(client)
const { refreshCurrentChallenge, screenType } = useContext(AppContext)
const [redirect, setRedirect] = useState(false)
const [challenge, setChallenge] = useState<ChallengeType | null>(null)
const [userChallenge, setUserChallenge] = useState<UserChallenge | null>(null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment