Remove the redundant back arrow from profile page headers.

Hop-State: A_06FPD7VZJYAPF10Z2W51B0G
Hop-Proposal: R_06FPD7VFZTMBPR7S6Q56GY8
Hop-Task: T_06FPD7P5DK3RZQR7H36JX48
Hop-Attempt: AT_06FPD7P5DHE0XP8VZPBE7G8
This commit is contained in:
2026-07-15 09:32:36 -07:00
committed by Hop
parent a0b4b3ce2a
commit 9e01bff9e8
+1 -16
View File
@@ -3,7 +3,7 @@
import { useState, useEffect, useCallback, useRef } from 'react'; import { useState, useEffect, useCallback, useRef } from 'react';
import Link from 'next/link'; import Link from 'next/link';
import { useParams, useRouter } from 'next/navigation'; import { useParams, useRouter } from 'next/navigation';
import { ArrowLeftIcon, CalendarIcon } from '@/components/Icons'; import { CalendarIcon } from '@/components/Icons';
import { PostCard } from '@/components/PostCard'; import { PostCard } from '@/components/PostCard';
import { User, Post } from '@/lib/types'; import { User, Post } from '@/lib/types';
import AutoTextarea from '@/components/AutoTextarea'; import AutoTextarea from '@/components/AutoTextarea';
@@ -521,27 +521,12 @@ export default function ProfilePage() {
padding: '16px', padding: '16px',
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: '24px',
borderBottom: '1px solid var(--border)', borderBottom: '1px solid var(--border)',
position: 'sticky', position: 'sticky',
top: 0, top: 0,
background: 'var(--background)', background: 'var(--background)',
zIndex: 10, zIndex: 10,
}}> }}>
<button
onClick={() => router.back()}
style={{
color: 'var(--foreground)',
background: 'none',
border: 'none',
cursor: 'pointer',
padding: 0,
display: 'flex',
alignItems: 'center',
}}
>
<ArrowLeftIcon />
</button>
<div> <div>
<h1 style={{ fontSize: '18px', fontWeight: 600 }}>{user.displayName || user.handle}</h1> <h1 style={{ fontSize: '18px', fontWeight: 600 }}>{user.displayName || user.handle}</h1>
<p style={{ fontSize: '13px', color: 'var(--foreground-tertiary)' }}>{user.postsCount} posts</p> <p style={{ fontSize: '13px', color: 'var(--foreground-tertiary)' }}>{user.postsCount} posts</p>