Skip to content

Commit fe8e600

Browse files
Merge pull request #451 from topcoder-platform/TCA-790_survey
TCA-790 Remove Obsolete Code -> dev
2 parents 38fb652 + 4c150d4 commit fe8e600

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src-ts/tools/learn/course-completed/CourseCompletedPage.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dispatch, FC, SetStateAction, useContext, useEffect } from 'react'
1+
import { FC, useContext, useEffect } from 'react'
22
import { NavigateFunction, Params, useNavigate, useParams } from 'react-router-dom'
33

44
import { EnvironmentConfig } from '../../../config'
@@ -9,7 +9,6 @@ import {
99
LoadingSpinner,
1010
profileContext,
1111
ProfileContextData,
12-
surveyTriggerForUser,
1312
textFormatGetSafeString,
1413
} from '../../../lib'
1514
import {
@@ -22,11 +21,11 @@ import {
2221
useLearnBreadcrumb,
2322
UserCertificationProgressProviderData,
2423
UserCertificationProgressStatus,
25-
useShowSurvey,
2624
} from '../learn-lib'
2725
import { getCertificatePath, getCoursePath, LEARN_PATHS, rootRoute } from '../learn.routes'
2826

2927
import { ReactComponent as StarsSvg } from './stars.svg'
28+
import styles from './CourseCompletedPage.module.scss'
3029

3130
const CourseCompletedPage: FC<{}> = () => {
3231

@@ -37,11 +36,6 @@ const CourseCompletedPage: FC<{}> = () => {
3736
const certificationParam: string = textFormatGetSafeString(routeParams.certification)
3837
const coursePath: string = getCoursePath(providerParam, certificationParam)
3938

40-
const [showSurvey, setShowSurvey]: [
41-
string,
42-
Dispatch<SetStateAction<string>>
43-
] = useShowSurvey()
44-
4539
const {
4640
course: courseData,
4741
ready: courseDataReady,

0 commit comments

Comments
 (0)