diff --git a/src/App/App.tsx b/src/App/App.tsx
index 109be71..5439da2 100644
--- a/src/App/App.tsx
+++ b/src/App/App.tsx
@@ -34,11 +34,9 @@ export interface AppStateInterface {
}
export default class App extends Component<{}, AppStateInterface> {
public state: AppStateInterface = {
- // @ts-ignore
logoUrl: window.VERDACCIO_LOGO,
user: {},
- // @ts-ignore
- scope: window.VERDACCIO_SCOPE ? `${window.VERDACCIO_SCOPE}:` : '',
+ scope: window.VERDACCIO_SCOPE || '',
showLoginModal: false,
isUserLoggedIn: false,
packages: [],
diff --git a/src/components/Footer/Footer.test.tsx b/src/components/Footer/Footer.test.tsx
index b91efcc..d8f9240 100644
--- a/src/components/Footer/Footer.test.tsx
+++ b/src/components/Footer/Footer.test.tsx
@@ -10,10 +10,8 @@ jest.mock('../../../package.json', () => ({
describe(' component', () => {
let wrapper;
beforeEach(() => {
- // @ts-ignore : Property 'VERDACCIO_VERSION' does not exist on type 'Window'
window.VERDACCIO_VERSION = 'v.1.0.0';
wrapper = mount();
- // @ts-ignore : Property 'VERDACCIO_VERSION' does not exist on type 'Window'
delete window.VERDACCIO_VERSION;
});
diff --git a/src/utils/styles/colors.ts b/src/utils/styles/colors.ts
index b4497f2..16f5c30 100644
--- a/src/utils/styles/colors.ts
+++ b/src/utils/styles/colors.ts
@@ -30,7 +30,6 @@ const colors = {
// Main colors
// -------------------------
- // @ts-ignore
primary: window.VERDACCIO_PRIMARY_COLOR || '#4b5e40',
secondary: '#20232a',
};
diff --git a/types/index.ts b/types/index.ts
index 68c79cb..d19b664 100644
--- a/types/index.ts
+++ b/types/index.ts
@@ -7,6 +7,10 @@ export interface VerdaccioOptions {
declare global {
interface Window {
__VERDACCIO_BASENAME_UI_OPTIONS: VerdaccioOptions;
+ VERDACCIO_PRIMARY_COLOR: string;
+ VERDACCIO_LOGO: string;
+ VERDACCIO_SCOPE: string;
+ VERDACCIO_VERSION: string;
VERDACCIO_API_URL: string;
}
}