Skip to content

Commit e047c53

Browse files
author
Sharma
committed
A few more any removal
1 parent fb7a46f commit e047c53

File tree

1 file changed

+5
-5
lines changed
  • packages/react-sdk-components/src/samples/FullPortal

1 file changed

+5
-5
lines changed

packages/react-sdk-components/src/samples/FullPortal/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { theme } from '../../theme';
1515

1616
import InvalidPortal from './InvalidPortal';
1717

18-
declare const myLoadPortal: any;
19-
declare const myLoadDefaultPortal: any;
18+
declare const myLoadPortal;
19+
declare const myLoadDefaultPortal;
2020

2121
function useQuery() {
2222
const { search } = useLocation();
@@ -87,7 +87,7 @@ export default function FullPortal() {
8787
// top level Pega root element (likely a RootContainer)
8888

8989
const { appPortal: thePortal, excludePortals } = SdkConfigAccess.getSdkConfigServer();
90-
const defaultPortal = PCore?.getEnvironmentInfo?.().getDefaultPortal?.() || '';
90+
const defaultPortal = PCore.getEnvironmentInfo().getDefaultPortal() || '';
9191
const queryPortal = sessionStorage.getItem('rsdk_portalName');
9292

9393
// Note: myLoadPortal and myLoadDefaultPortal are set when bootstrapWithAuthHeader is invoked
@@ -120,7 +120,7 @@ export default function FullPortal() {
120120
navigate(redirectUrl);
121121
sessionStorage.removeItem('url');
122122

123-
const locale: any = sessionStorage.getItem('rsdk_locale') || undefined;
123+
const locale = sessionStorage.getItem('rsdk_locale') || undefined;
124124
// appName and mainRedirect params have to be same as earlier invocation
125125
loginIfNecessary({ appName: 'portal', mainRedirect: true, locale });
126126
}
@@ -129,7 +129,7 @@ export default function FullPortal() {
129129
useEffect(() => {
130130
document.addEventListener('SdkConstellationReady', handleSdkConstellationReady);
131131

132-
const locale: any = sessionStorage.getItem('rsdk_locale') || undefined;
132+
const locale = sessionStorage.getItem('rsdk_locale') || undefined;
133133

134134
const isLoggedIn = sessionStorage.getItem('isLoggedIn');
135135
const redirected = sessionStorage.getItem('redirected');

0 commit comments

Comments
 (0)