Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/feed/MyFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const MyFeed = ({ showHeader, posts = [], isLast = false }: FeedListProps) => {
return (
<Container>
<Profile
userId={profileData.userId}
userId={profileData.creatorId}
showFollowButton={false}
profileImageUrl={profileData.profileImageUrl}
nickname={profileData.nickname}
Expand Down
8 changes: 4 additions & 4 deletions src/components/feed/MyFollower.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ const Container = styled.div`
`;

interface MyFollowerProps {
userId?: number;
creatorId?: number;
followerCount: number;
latestFollowerProfileImageUrls?: string[];
}

const MyFollower = ({
userId,
creatorId,
followerCount = 0,
latestFollowerProfileImageUrls = [],
}: MyFollowerProps) => {
const navigate = useNavigate();

const handleMoreClick = () => {
if (userId) {
navigate(`/follow/followerlist/${userId}`);
if (creatorId) {
navigate(`/follow/followerlist/${creatorId}`);
}
};

Expand Down
4 changes: 3 additions & 1 deletion src/components/feed/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface ProfileProps {
aliasColor: string;
followerCount: number;
latestFollowerProfileImageUrls?: string[];
creatorId?: number;
userId?: number;
isMyFeed?: boolean;
}
Expand All @@ -26,6 +27,7 @@ const Profile = ({
aliasColor,
followerCount,
latestFollowerProfileImageUrls = [],
creatorId,
userId,
isMyFeed,
}: ProfileProps) => {
Expand Down Expand Up @@ -92,7 +94,7 @@ const Profile = ({
<MyFollower
followerCount={followerCount}
latestFollowerProfileImageUrls={latestFollowerProfileImageUrls}
userId={userId}
creatorId={creatorId}
/>
</Container>
);
Expand Down
1 change: 1 addition & 0 deletions src/types/profile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// 내 프로필 정보 타입
export interface MyProfileData {
creatorId: number;
userId: number;
profileImageUrl: string;
nickname: string;
Expand Down