Skip to content

Commit 8e0abfd

Browse files
Merge pull request #429 from topcoder-platform/PROD-3245_uni-nav-types
PROD-3245 - universal-navigation types -> PROD-3115_uni-nav
2 parents 4b503f6 + 1ad8688 commit 8e0abfd

File tree

3 files changed

+1640
-1437
lines changed

3 files changed

+1640
-1437
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"swr": "^1.3.0",
7070
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.26",
7171
"typescript": "^4.8.4",
72+
"universal-navigation": "https://github.com/topcoder-platform/universal-navigation",
7273
"uuid": "^9.0.0"
7374
},
7475
"devDependencies": {

src-ts/header/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
useState,
1111
} from 'react'
1212
import { NavigateFunction, useNavigate } from 'react-router-dom'
13+
import { type TcUniNavFn } from 'universal-navigation'
1314
import classNames from 'classnames'
1415

1516
import { EnvironmentConfig, PageSubheaderPortalId } from '../config'
@@ -26,8 +27,7 @@ import {
2627

2728
import UniNavSnippet from './universal-nav-snippet'
2829

29-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
30-
declare let tcUniNav: any
30+
declare let tcUniNav: TcUniNavFn
3131
UniNavSnippet(EnvironmentConfig.UNIVERSAL_NAV.URL)
3232

3333
interface NavigationRequest {
@@ -86,7 +86,7 @@ const Header: FC = () => {
8686
user: profile ? {
8787
handle: profile.handle,
8888
initials: `${profile.firstName.charAt(0)}${profile.lastName.charAt(0)}`,
89-
photoURL: profile.photoURL,
89+
photoUrl: profile.photoURL,
9090
userId: profile.userId,
9191
} : undefined,
9292
},
@@ -110,7 +110,7 @@ const Header: FC = () => {
110110
navElementId,
111111
{
112112
toolName: activeToolName,
113-
toolRoute: activeToolRoute,
113+
toolRoot: activeToolRoute,
114114
},
115115
)
116116
}, [

0 commit comments

Comments
 (0)