Skip to content

Commit

Permalink
User Button over image
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinsjr committed Mar 26, 2023
1 parent 3dfbaaf commit 6d1bb28
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SignInButton, useUser } from "@clerk/nextjs";
import { SignInButton, UserButton, useUser } from "@clerk/nextjs";
import { type NextPage } from "next";

import { api } from "~/utils/api";
Expand Down Expand Up @@ -37,13 +37,14 @@ const CreatePostWizard = () => {
return (

<div className="flex w-full gap-3">
<Image
src={user.profileImageUrl}
alt="Profile image"
className="h-14 w-14 rounded-full"
width={56}
height={56}
/>
<UserButton appearance={{
elements: {
userButtonAvatarBox: {
width: 56,
height: 56
}
}
}} />
<input
placeholder="Type some emojis!"
className="grow bg-transparent outline-none"
Expand Down

0 comments on commit 6d1bb28

Please sign in to comment.