feat: badges

- render badges in cards
- render mentioned badges in chat
- render host badge awards in chat
- render accepted badges next to username
This commit is contained in:
2023-07-31 20:42:43 +02:00
parent 1baecf41f2
commit 7a030c9e53
14 changed files with 291 additions and 42 deletions

View File

@ -13,7 +13,7 @@ interface EventProps {
export function Event({ link }: EventProps) {
const event = useEvent(link);
if (event && event.kind === GOAL) {
if (event?.kind === GOAL) {
return (
<div className="event-container">
<Goal ev={event} />
@ -21,7 +21,7 @@ export function Event({ link }: EventProps) {
);
}
if (event && event.kind === EventKind.TextNote) {
if (event?.kind === EventKind.TextNote) {
return (
<div className="event-container">
<Note ev={event} />