postmerge
This commit is contained in:
parent
21c216d19c
commit
9277d652e9
|
@ -312,7 +312,7 @@ export const AuthorCard = (props: Props) => {
|
||||||
<For each={authorSubs()}>
|
<For each={authorSubs()}>
|
||||||
{(subscription) =>
|
{(subscription) =>
|
||||||
isAuthor(subscription) ? (
|
isAuthor(subscription) ? (
|
||||||
<AuthorBadge author={subscription} subscriptionsMode={true} />
|
<AuthorBadge author={subscription} />
|
||||||
) : (
|
) : (
|
||||||
<TopicBadge topic={subscription} subscriptionsMode={true} />
|
<TopicBadge topic={subscription} subscriptionsMode={true} />
|
||||||
)
|
)
|
||||||
|
|
|
@ -59,7 +59,6 @@ export const Header = (props: Props) => {
|
||||||
const [isTopicsVisible, setIsTopicsVisible] = createSignal(false)
|
const [isTopicsVisible, setIsTopicsVisible] = createSignal(false)
|
||||||
const [isZineVisible, setIsZineVisible] = createSignal(false)
|
const [isZineVisible, setIsZineVisible] = createSignal(false)
|
||||||
const [isFeedVisible, setIsFeedVisible] = createSignal(false)
|
const [isFeedVisible, setIsFeedVisible] = createSignal(false)
|
||||||
const { isAuthenticated } = useSession()
|
|
||||||
|
|
||||||
const toggleFixed = () => setFixed(!fixed())
|
const toggleFixed = () => setFixed(!fixed())
|
||||||
|
|
||||||
|
@ -331,11 +330,7 @@ export const Header = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
<HeaderAuth setIsProfilePopupVisible={setIsProfilePopupVisible} />
|
<HeaderAuth setIsProfilePopupVisible={setIsProfilePopupVisible} />
|
||||||
<Show when={props.title}>
|
<Show when={props.title}>
|
||||||
<div
|
<div class={clsx(styles.articleControls, 'col-auto')}>
|
||||||
class={clsx(styles.articleControls, 'col-auto', {
|
|
||||||
[styles.articleControlsAuthorized]: isAuthenticated(),
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
<SharePopup
|
<SharePopup
|
||||||
title={props.title}
|
title={props.title}
|
||||||
imageUrl={props.cover}
|
imageUrl={props.cover}
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const TopicBadge = (props: Props) => {
|
||||||
lang() === 'en' ? capitalize(props.topic.slug.replaceAll('-', ' ')) : props.topic.title
|
lang() === 'en' ? capitalize(props.topic.slug.replaceAll('-', ' ')) : props.topic.title
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx(styles.TopicBadge, { [styles.TopicBadgeSubscriptionsMode]: props.subscriptionsMode })}>
|
<div class={clsx(styles.TopicBadge, props.subscriptionsMode)}>
|
||||||
<div class={styles.content}>
|
<div class={styles.content}>
|
||||||
<div class={styles.basicInfo}>
|
<div class={styles.basicInfo}>
|
||||||
<Show when={props.subscriptionsMode}>
|
<Show when={props.subscriptionsMode}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user