Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/apps/customer-portal/src/config/routes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ export const rootRoute: string
: `/${AppSubdomain.customer}`

export const talentSearchRouteId = 'talent-search'
export const profileCompletionRouteId = 'profile-completion'
6 changes: 2 additions & 4 deletions src/apps/customer-portal/src/customer-portal.routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import {
} from '~/libs/core'

import {
profileCompletionRouteId,
rootRoute,
talentSearchRouteId,
} from './config/routes.config'
import { customerPortalTalentSearchRoutes } from './pages/talent-search/talent-search.routes'
import { customerPortalProfileCompletionRoutes } from './pages/profile-completion/profile-completion.routes'

const CustomerPortalApp: LazyLoadedComponent = lazyLoad(() => import('./CustomerPortalApp'))

Expand All @@ -28,10 +27,9 @@ export const customerPortalRoutes: ReadonlyArray<PlatformRoute> = [
children: [
{
authRequired: true,
element: <Rewrite to={profileCompletionRouteId} />,
element: <Rewrite to={talentSearchRouteId} />,
route: '',
},
...customerPortalProfileCompletionRoutes,
...customerPortalTalentSearchRoutes,
],
domain: AppSubdomain.customer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ import _ from 'lodash'

import { TabsNavItem } from '~/libs/ui'
import {
profileCompletionRouteId,
talentSearchRouteId,
} from '~/apps/customer-portal/src/config/routes.config'

export function getTabsConfig(userRoles: string[], isAnonymous: boolean, isUnprivilegedUser: boolean): TabsNavItem[] {

const tabs: TabsNavItem[] = [
...(!isUnprivilegedUser ? [{
id: profileCompletionRouteId,
title: 'Profile Completion',
}, {
id: talentSearchRouteId,
title: 'Talent Search',
}] : []),
Expand Down
1 change: 0 additions & 1 deletion src/apps/customer-portal/src/lib/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './profileCompletion.service'
export * from './talentSearch.service'

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ export type SearchTalent = {
}

export type MemberSearchPayload = {
countries?: string[]
limit: number
openToWork: boolean
openToWork?: boolean
page: number
recentlyActive: boolean
recentlyActive?: boolean
skillSearchType: 'OR'
skills: Array<{
id: string
wins: number
}>
verifiedProfile: boolean
verifiedProfile?: boolean
}

export type MemberSearchResponse = {
Expand Down
Loading
Loading