diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx
index f0c9e70d..155bbd4c 100644
--- a/web/components/user-page.tsx
+++ b/web/components/user-page.tsx
@@ -11,6 +11,7 @@ import { Spacer } from './layout/spacer'
import { Row } from './layout/row'
import { LinkIcon } from '@heroicons/react/solid'
import { genHash } from '../../common/util/random'
+import { PencilIcon } from '@heroicons/react/outline'
export function UserLink(props: {
name: string
@@ -53,14 +54,26 @@ export function UserPage(props: { user: User; currentUser?: User }) {
style={{
backgroundImage: `url(${bannerUrl})`,
}}
- />
-
+
+
+
+ {/* Top right buttons (e.g. edit, follow) */}
+
+ {isCurrentUser && (
+
+ {' '}
+ Edit
+
+ )}
+
{/* Profile details: name, username, bio, and link to twitter/discord */}
diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx
index 9ee1e6ca..21ed216e 100644
--- a/web/pages/profile.tsx
+++ b/web/pages/profile.tsx
@@ -19,6 +19,7 @@ import { Row } from '../components/layout/row'
import { User } from '../../common/user'
import { updateUser } from '../lib/firebase/users'
import { defaultBannerUrl } from '../components/user-page'
+import { SiteLink } from '../components/site-link'
function EditUserField(props: {
user: User
@@ -37,17 +38,13 @@ function EditUserField(props: {
)
}
@@ -61,8 +58,6 @@ export default function ProfilePage() {
const [name, setName] = useState(user?.name || '')
const [username, setUsername] = useState(user?.username || '')
- const [isEditing, setIsEditing] = useState(false)
-
useEffect(() => {
if (user) {
setAvatarUrl(user.avatarUrl || '')
@@ -130,23 +125,10 @@ export default function ProfilePage() {
-
- {isEditing ? (
-
- ) : (
-
- )}
+
+
+ Done
+
@@ -160,9 +142,7 @@ export default function ProfilePage() {
height={80}
className="flex items-center justify-center rounded-full bg-gray-400"
/>
- {isEditing && (
-
- )}
+
>
)}
@@ -170,35 +150,27 @@ export default function ProfilePage() {
{user && (
@@ -210,7 +182,12 @@ export default function ProfilePage() {
label="Banner Url"
isEditing={isEditing}
/> */}
-
+
))}
>