File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ const PostBase: React.FC<PostBaseProps> = ({ onClickMenu }) => {
6363 const [ activeTab , setActiveTab ] = useState < 'likes' | 'comments' > ( 'likes' ) ; // activeTab state
6464
6565 const { postId } = useParams < { postId : string } > ( ) ;
66- const userId = getCurrentUserId ( ) ;
6766
6867 const nav = useNavigate ( ) ;
6968
@@ -73,13 +72,7 @@ const PostBase: React.FC<PostBaseProps> = ({ onClickMenu }) => {
7372 } ;
7473
7574 const handleUserClick = ( ) => {
76- if ( post ?. isPostWriter ) {
77- // 내 게시물인 경우
78- nav ( `/profile/${ userId } ` ) ;
79- } else {
80- // 다른 유저의 게시물인 경우
81- nav ( `/users/${ post ?. user . id } ` ) ;
82- }
75+ nav ( `/profile/${ post ?. user . id } ` ) ;
8376 } ;
8477
8578 const contentRef = useRef < HTMLDivElement > ( null ) ;
Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ export const UserProfile = styled(LoadingSkeleton)`
8888 }
8989` ;
9090
91- export const UserName = styled ( StyledText ) `` ;
91+ export const UserName = styled ( StyledText ) `
92+ cursor: pointer;
93+ ` ;
9294
9395export const MenuBtn = styled . button `
9496 width: 18px;
You can’t perform that action at this time.
0 commit comments