From 70ad45dd45baa52b4ddfc7711d23d01b34961373 Mon Sep 17 00:00:00 2001 From: maksimroi <70580821+maksimroi@users.noreply.github.com> Date: Wed, 16 Dec 2020 15:17:18 +0300 Subject: [PATCH] [APD-10021] Update urls to dashboard for Admob sync app and extension (#93) [APD-10021] Update urls to dashboard for Admob sync app and extension (#93) --- chrome-extension/popup/components/Popup.tsx | 4 ++-- src/core/appdeal-api/auth-context.ts | 3 +-- src/ui/components/accounts/AccountsComponent.tsx | 2 +- webpack/development.ts | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/chrome-extension/popup/components/Popup.tsx b/chrome-extension/popup/components/Popup.tsx index e7d6d65..3c4ee12 100644 --- a/chrome-extension/popup/components/Popup.tsx +++ b/chrome-extension/popup/components/Popup.tsx @@ -12,7 +12,7 @@ import styles from './Popup.scss'; function SignInButton () { return (

Sign in to continue

-
Sign In
+
Sign In
); } @@ -69,7 +69,7 @@ export function Popup ({state}: { state: ExtensionState }) { ; diff --git a/src/core/appdeal-api/auth-context.ts b/src/core/appdeal-api/auth-context.ts index b28a4a1..4cb5c7e 100644 --- a/src/core/appdeal-api/auth-context.ts +++ b/src/core/appdeal-api/auth-context.ts @@ -19,10 +19,9 @@ export class AuthContext extends EventEmitter { private static storage: JsonStorage; - public static readonly ready: Promise = new Promise(() => {}); + public static ready: Promise = new Promise(() => {}); static async init (storage: JsonStorage) { - // @ts-ignore return AuthContext.ready = new Promise(async r => { AuthContext.storage = storage; AuthContext.TOKENS = new Map(Object.entries(await AuthContext.storage.load(this.TOKENS_FILE, {}))); diff --git a/src/ui/components/accounts/AccountsComponent.tsx b/src/ui/components/accounts/AccountsComponent.tsx index f43cbd2..23adeeb 100644 --- a/src/ui/components/accounts/AccountsComponent.tsx +++ b/src/ui/components/accounts/AccountsComponent.tsx @@ -76,7 +76,7 @@ export function AccountsComponent (
diff --git a/webpack/development.ts b/webpack/development.ts index 1791ffd..734239e 100644 --- a/webpack/development.ts +++ b/webpack/development.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import * as path from 'path'; import webpack from 'webpack'; import merge from 'webpack-merge'; import {entriesConfig, SRC_PATH} from './default';