File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
learn/src/course-completed/course-view Expand file tree Collapse file tree 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) => (
5454 size = 'md'
5555 primary
5656 label = 'Start a new course'
57- to = { rootRoute }
57+ to = { rootRoute || '/' }
5858 />
5959 </ div >
6060 < p className = 'body-main' >
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ import {
88 UserProfile ,
99} from '~/libs/core'
1010import { ProfilePicture , useCheckIsMobile } from '~/libs/shared'
11- import { Button } from '~/libs/ui'
1211
1312import { AddButton , EditMemberPropertyBtn } from '../../components'
1413import { EDIT_MODE_QUERY_PARAM , profileEditModes } from '../../config'
15- import { MemberProfileContextValue , useMemberProfileContext } from '../MemberProfile.context'
1614
1715import { OpenForGigs } from './OpenForGigs'
1816import { ModifyMemberNameModal } from './ModifyMemberNameModal'
@@ -45,8 +43,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
4543 const [ isHiringFormOpen , setIsHiringFormOpen ] : [ boolean , Dispatch < SetStateAction < boolean > > ]
4644 = useState < boolean > ( false )
4745
48- const { isTalentSearch } : MemberProfileContextValue = useMemberProfileContext ( )
49-
5046 const { state } : Location = useLocation ( )
5147
5248 const searchedSkills : string [ ] = useMemo (
@@ -179,18 +175,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
179175 . format ( 'MMM YYYY' ) }
180176 </ p >
181177 </ 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- }
194178 </ div >
195179
196180 {
You can’t perform that action at this time.
0 commit comments