From a2b449502ac11e23a5092ece782c080ba7f612b4 Mon Sep 17 00:00:00 2001
From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com>
Date: Fri, 29 Dec 2023 14:07:48 +0300
Subject: [PATCH] Share popup update (#350)
* Share popup update
* Remove shared link
* Cleanup code
* Cleanup code
* Cleanup code
* Cleanup code
---
public/icons/lightning.svg | 3 +
public/locales/en/translation.json | 1 +
public/locales/ru/translation.json | 1 +
src/components/Article/FullArticle.tsx | 1 -
src/components/Article/SharePopup.tsx | 6 +-
.../Feed/ArticleCard/ArticleCard.tsx | 3 -
.../Feed/FeedArticlePopup.module.scss | 25 ----
src/components/Feed/FeedArticlePopup.tsx | 115 ------------------
.../FeedArticlePopup.module.scss | 48 ++++++++
.../FeedArticlePopup/FeedArticlePopup.tsx | 92 ++++++++++++++
src/components/Feed/FeedArticlePopup/index.ts | 1 +
.../InviteCoAuthorsModal.tsx | 7 +-
src/components/_shared/Popup/Popup.tsx | 2 -
.../_shared/SoonChip/SoonChip.module.scss | 23 ++++
src/components/_shared/SoonChip/SoonChip.tsx | 20 +++
src/components/_shared/SoonChip/index.ts | 1 +
16 files changed, 198 insertions(+), 151 deletions(-)
create mode 100644 public/icons/lightning.svg
delete mode 100644 src/components/Feed/FeedArticlePopup.module.scss
delete mode 100644 src/components/Feed/FeedArticlePopup.tsx
create mode 100644 src/components/Feed/FeedArticlePopup/FeedArticlePopup.module.scss
create mode 100644 src/components/Feed/FeedArticlePopup/FeedArticlePopup.tsx
create mode 100644 src/components/Feed/FeedArticlePopup/index.ts
create mode 100644 src/components/_shared/SoonChip/SoonChip.module.scss
create mode 100644 src/components/_shared/SoonChip/SoonChip.tsx
create mode 100644 src/components/_shared/SoonChip/index.ts
diff --git a/public/icons/lightning.svg b/public/icons/lightning.svg
new file mode 100644
index 00000000..11ddae16
--- /dev/null
+++ b/public/icons/lightning.svg
@@ -0,0 +1,3 @@
+
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index e21cda3a..18ee20fa 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -336,6 +336,7 @@
"Something went wrong, please try again": "Something went wrong, please try again",
"Song lyrics": "Song lyrics...",
"Song title": "Song title",
+ "Soon": "Скоро",
"Sorry, this address is already taken, please choose another one.": "Sorry, this address is already taken, please choose another one",
"Special Projects": "Special Projects",
"Special projects": "Special projects",
diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json
index 38acbca2..50714efd 100644
--- a/public/locales/ru/translation.json
+++ b/public/locales/ru/translation.json
@@ -355,6 +355,7 @@
"Something went wrong, please try again": "Что-то пошло не так, попробуйте еще раз",
"Song lyrics": "Текст песни...",
"Song title": "Название песни",
+ "Soon": "Скоро",
"Sorry, this address is already taken, please choose another one.": "Увы, этот адрес уже занят, выберите другой",
"Special Projects": "Спецпроекты",
"Special projects": "Спецпроекты",
diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx
index 2fc420ce..79a6ea20 100644
--- a/src/components/Article/FullArticle.tsx
+++ b/src/components/Article/FullArticle.tsx
@@ -495,7 +495,6 @@ export const FullArticle = (props: Props) => {
title={props.article.title}
description={description}
imageUrl={props.article.cover}
- shareUrl={getShareUrl({ pathname: `/${props.article.slug}` })}
trigger={