Skip to content

Commit

Permalink
Update user name in post editor form
Browse files Browse the repository at this point in the history
  • Loading branch information
thebkht committed Nov 23, 2023
1 parent 3c15017 commit bec41a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/editor/post-editor-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -633,15 +633,15 @@ export function PostEditorForm(props: { post: any, user: any }) {
<nav className="menu">
<div className="menu-container fixed p-3.5 bg-background border-b w-full top-0 left-0">

<Link href={`/@${props.user?.name}`} className="flex align-items-center">
<Link href={`/@${props.user?.username}`} className="flex align-items-center">
<Avatar className="h-8 w-8 mr-1 border">
<AvatarImage src={ props.user?.image } alt={ props.user?.name } />
<AvatarImage src={ props.user?.image } alt={ props.user?.name || props.user?.username } />
<AvatarFallback>{props.user?.name.charAt(0)}</AvatarFallback>

</Avatar>
<Button variant="ghost" size={"sm"} className="hidden md:flex" asChild>
<div className="font-medium">
{ props.user?.name }
{ props.user?.name || props.user?.username }
</div>
</Button>

Expand Down

0 comments on commit bec41a2

Please sign in to comment.