From b35baa069f77d34538ef6f95f3083e2e13ccc01d Mon Sep 17 00:00:00 2001 From: Antoine Chalifour Date: Thu, 3 Oct 2019 13:30:01 +0200 Subject: [PATCH] fix: add new window property to interface definition --- src/App/App.tsx | 4 +--- src/components/Footer/Footer.test.tsx | 2 -- src/utils/styles/colors.ts | 1 - types/index.ts | 4 ++++ 4 files changed, 5 insertions(+), 6 deletions(-) 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('