parent
7df56405c4
commit
50baf5b60f
|
@ -173,8 +173,8 @@ export const AuthorCard = (props: AuthorCardProps) => {
|
||||||
<span class={clsx({ [styles.authorName]: !props.hasLink })}>{name()}</span>
|
<span class={clsx({ [styles.authorName]: !props.hasLink })}>{name()}</span>
|
||||||
</ConditionalWrapper>
|
</ConditionalWrapper>
|
||||||
</div>
|
</div>
|
||||||
|
{/*TODO: implement plurals by i18n*/}
|
||||||
<Show when={props.author.bio}>
|
<Show when={props.author.bio} fallback={<div>{props.author.stat?.shouts} публикаций</div>}>
|
||||||
<div
|
<div
|
||||||
class={styles.authorAbout}
|
class={styles.authorAbout}
|
||||||
classList={{ 'text-truncate': props.truncateBio }}
|
classList={{ 'text-truncate': props.truncateBio }}
|
||||||
|
|
|
@ -8,6 +8,9 @@ export default gql`
|
||||||
name
|
name
|
||||||
userpic
|
userpic
|
||||||
bio
|
bio
|
||||||
|
stat {
|
||||||
|
shouts
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
|
@ -8,6 +8,9 @@ export default gql`
|
||||||
name
|
name
|
||||||
userpic
|
userpic
|
||||||
bio
|
bio
|
||||||
|
stat {
|
||||||
|
shouts
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user