File tree 2 files changed +1
-17
lines changed
learn/src/course-completed/course-view
2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const CourseView: FC<CourseViewProps> = (props: CourseViewProps) => (
54
54
size = 'md'
55
55
primary
56
56
label = 'Start a new course'
57
- to = { rootRoute }
57
+ to = { rootRoute || '/' }
58
58
/>
59
59
</ div >
60
60
< p className = 'body-main' >
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ import {
8
8
UserProfile ,
9
9
} from '~/libs/core'
10
10
import { ProfilePicture , useCheckIsMobile } from '~/libs/shared'
11
- import { Button } from '~/libs/ui'
12
11
13
12
import { AddButton , EditMemberPropertyBtn } from '../../components'
14
13
import { EDIT_MODE_QUERY_PARAM , profileEditModes } from '../../config'
15
- import { MemberProfileContextValue , useMemberProfileContext } from '../MemberProfile.context'
16
14
17
15
import { OpenForGigs } from './OpenForGigs'
18
16
import { ModifyMemberNameModal } from './ModifyMemberNameModal'
@@ -45,8 +43,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
45
43
const [ isHiringFormOpen , setIsHiringFormOpen ] : [ boolean , Dispatch < SetStateAction < boolean > > ]
46
44
= useState < boolean > ( false )
47
45
48
- const { isTalentSearch } : MemberProfileContextValue = useMemberProfileContext ( )
49
-
50
46
const { state } : Location = useLocation ( )
51
47
52
48
const searchedSkills : string [ ] = useMemo (
@@ -179,18 +175,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
179
175
. format ( 'MMM YYYY' ) }
180
176
</ p >
181
177
</ div >
182
- {
183
- ! canEdit && isTalentSearch ? (
184
- < div className = { styles . hiringClickWrap } >
185
- < Button
186
- label = 'Hire Topcoder Talent'
187
- primary
188
- size = 'lg'
189
- onClick = { handleStartHiringToggle }
190
- />
191
- </ div >
192
- ) : undefined
193
- }
194
178
</ div >
195
179
196
180
{
You can’t perform that action at this time.
0 commit comments