Skip to content

Commit

Permalink
Merge pull request #7 from perkinsjr/userbutton
Browse files Browse the repository at this point in the history
Removes the image and adds the UserButton
  • Loading branch information
t3dotgg committed Apr 1, 2023
2 parents 4ca8e69 + 6d1bb28 commit e105cd3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/pages/index.tsx
@@ -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

1 comment on commit e105cd3

@vercel
Copy link

@vercel vercel bot commented on e105cd3 Apr 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.