Skip to content

Commit

Permalink
feat: synchronise avatar display in posts with navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Jul 7, 2023
1 parent d4d1391 commit c3e5432
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/features/posts/components/Post/PostView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ export const PostView = ({
spacing="0.75rem"
{...containerProps}
>
<Avatar src={post.author.image ?? undefined} size="md" />
<Avatar
variant="subtle"
bg="base.canvas.brand-subtle"
name={post.author?.name ?? undefined}
src={post.author.image ?? undefined}
size="md"
/>
<Stack direction="column" spacing="0.75rem" flex={1}>
<Stack
direction={{ base: 'column', md: 'row' }}
Expand Down

0 comments on commit c3e5432

Please sign in to comment.