From 98e0777d2eba83cc2ef324d0114de4426958c3c3 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 8 Nov 2023 23:52:56 +0300 Subject: [PATCH] Fixed subscribe button style --- src/components/Author/AuthorBadge/AuthorBadge.tsx | 11 +++++++++-- src/components/Author/AuthorCard/AuthorCard.tsx | 9 ++++++++- src/components/Topic/Card.module.scss | 2 ++ src/components/Topic/Card.tsx | 7 ++++--- src/components/_shared/Button/Button.module.scss | 10 ++++++++++ 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index 289cfa7e..79d7b506 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -1,5 +1,6 @@ import { clsx } from 'clsx' import styles from './AuthorBadge.module.scss' +import stylesButton from '../../_shared/Button/Button.module.scss' import { Userpic } from '../Userpic' import { Author, FollowingEntity } from '../../../graphql/types.gen' import { createMemo, createSignal, Match, Show, Switch } from 'solid-js' @@ -131,7 +132,10 @@ export const AuthorBadge = (props: Props) => { value={subscribeValue()} onClick={() => handleSubscribe(true)} isSubscribeButton={true} - class={clsx(styles.actionButton, { [styles.iconed]: props.iconButtons })} + class={clsx(styles.actionButton, { + [styles.iconed]: props.iconButtons, + [stylesButton.subscribed]: subscribed() + })} /> } > @@ -141,7 +145,10 @@ export const AuthorBadge = (props: Props) => { value={unsubscribeValue()} onClick={() => handleSubscribe(false)} isSubscribeButton={true} - class={clsx(styles.actionButton, { [styles.iconed]: props.iconButtons })} + class={clsx(styles.actionButton, { + [styles.iconed]: props.iconButtons, + [stylesButton.subscribed]: subscribed() + })} /> diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx index 5bac630c..07b38a28 100644 --- a/src/components/Author/AuthorCard/AuthorCard.tsx +++ b/src/components/Author/AuthorCard/AuthorCard.tsx @@ -211,7 +211,14 @@ export const AuthorCard = (props: Props) => { when={isProfileOwner()} fallback={
-