From b1f019ebae92f8ae5f8061f10d4899ec0f321fc0 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 19 Mar 2021 17:00:26 +0700 Subject: [PATCH] #23 added superpowers ui tab --- package.json | 1 + src/components/boris/BorisComments/index.tsx | 4 +- .../boris/BorisComments/styles.module.scss | 2 +- .../boris/BorisUIDemo/styles.module.scss | 3 ++ src/components/dialogs/Tab/index.tsx | 16 ++++++ src/components/dialogs/Tab/styles.module.scss | 20 +++++++ src/components/dialogs/Tabs/index.tsx | 12 +++++ .../dialogs/Tabs/styles.module.scss | 9 ++++ src/components/node/NodeRelatedItem/index.tsx | 2 +- src/containers/node/BorisLayout/index.tsx | 52 ++++++++++++++----- .../node/BorisLayout/styles.module.scss | 7 ++- .../profile/ProfileLayout/index.tsx | 4 +- src/containers/profile/ProfileTabs/index.tsx | 32 +++++------- src/redux/modal/sagas.ts | 18 +++++-- yarn.lock | 22 ++++++++ 15 files changed, 162 insertions(+), 42 deletions(-) create mode 100644 src/components/dialogs/Tab/index.tsx create mode 100644 src/components/dialogs/Tab/styles.module.scss create mode 100644 src/components/dialogs/Tabs/index.tsx create mode 100644 src/components/dialogs/Tabs/styles.module.scss diff --git a/package.json b/package.json index 512261d1..beea8443 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@tippy.js/react": "^3.1.1", + "@types/react-router-dom": "^5.1.7", "autosize": "^4.0.2", "axios": "^0.21.1", "body-scroll-lock": "^2.6.4", diff --git a/src/components/boris/BorisComments/index.tsx b/src/components/boris/BorisComments/index.tsx index 7cddfd67..b4350c44 100644 --- a/src/components/boris/BorisComments/index.tsx +++ b/src/components/boris/BorisComments/index.tsx @@ -21,7 +21,7 @@ const BorisComments: FC = ({ isLoadingComments, node, commentCount, comm const user = useShallowSelect(selectAuthUser); return ( - + <> {user.is_user && } @@ -33,7 +33,7 @@ const BorisComments: FC = ({ isLoadingComments, node, commentCount, comm