Skip to content

Commit

Permalink
fix(feed): feed list type 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjh11130 committed Aug 24, 2023
1 parent deba1f9 commit 667d56f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions services/feed/src/main/components/post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const FeedPost = ({
is_mine,
like_count,
profile,
type,
authority_type,
categoryId,
}: FeedPostProps) => {
const { mutate: deleteMutate } = useDeleteFeed(feed_id, categoryId);
Expand All @@ -35,7 +35,7 @@ const FeedPost = ({
confirmText: '삭제하기',
});

const menuAction: Record<typeof actionSheetMenu[number], () => void> = {
const menuAction: Record<(typeof actionSheetMenu)[number], () => void> = {
삭제하기: () => {
deleteConfirm();
},
Expand All @@ -47,14 +47,14 @@ const FeedPost = ({
});
},
};

// console.log(`${type}`);
return (
<FlexCol fullWidth>
<FeedPostContainer>
<PostHeaderContainer>
<PostProfile
createAt={created_at}
name={`${name ? `${name}-` : ''}${type}`}
name={`${name ? `${name}-` : ''}${authority_type}`}
profileSrc={profile}
/>

Expand Down
2 changes: 1 addition & 1 deletion services/feed/src/main/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type FeedType = {
like_count: number;
name: string;
profile: string;
type: string;
authority_type: string;
};

export interface GetFeedListResponseDto {
Expand Down

0 comments on commit 667d56f

Please sign in to comment.