From 9e04595b3e16395a93060b86268d3cf19a82eae9 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Mon, 14 Nov 2022 09:52:08 +0300 Subject: [PATCH] ackee-test --- src/components/Article/FullArticle.tsx | 14 ++++++-------- src/components/Feed/Card.tsx | 2 +- src/components/Views/Home.tsx | 6 ++++++ src/utils/config.ts | 4 ++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index c516872b..fa78d1f8 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -65,14 +65,6 @@ export const FullArticle = (props: ArticleProps) => { }) } } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const script = document.createElement('script') - script.type = 'text/javascript' - script.src = 'https://ackee.discours.io/tracker.js' - script.setAttribute('data-ackee-domain-id', 'dfaf6bc4-163c-4885-9d8b-1e72f7064d42') - script.setAttribute('data-ackee-server', 'https://ackee.discours.io') - script.async = true - document.head.appendChild(script) }) //
diff --git a/src/components/Feed/Card.tsx b/src/components/Feed/Card.tsx index 56f53f7e..ff431332 100644 --- a/src/components/Feed/Card.tsx +++ b/src/components/Feed/Card.tsx @@ -96,7 +96,7 @@ export const ArticleCard = (props: ArticleCardProps) => {
diff --git a/src/components/Views/Home.tsx b/src/components/Views/Home.tsx index d1246a86..f3d91c39 100644 --- a/src/components/Views/Home.tsx +++ b/src/components/Views/Home.tsx @@ -110,6 +110,12 @@ export const HomeView = (props: HomeProps) => { return ( 0}> + diff --git a/src/utils/config.ts b/src/utils/config.ts index 1332eea2..afc56a54 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -1,5 +1,5 @@ export const isDev = import.meta.env.MODE === 'development' // export const apiBaseUrl = 'https://newapi.discours.io' -// export const apiBaseUrl = 'https://testapi.discours.io' -export const apiBaseUrl = 'http://localhost:8080' +export const apiBaseUrl = 'https://testapi.discours.io' +//export const apiBaseUrl = 'http://localhost:8080'