Skip to content

Commit

Permalink
fix(feed): authority_type 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjh11130 committed Aug 29, 2023
1 parent 2b19754 commit b45151e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions services/feed/src/pages/write.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const Write = () => {
content: '',
fileBase64Arr: [],
title: '12345',
authorityType: '',
authority_type: '',
});

useEffect(() => {
sendBridgeEvent('isRightButtonEnabled', {
isEnabled: !!newFeedInfo.content && !!newFeedInfo.authorityType,
isEnabled: !!newFeedInfo.content && !!newFeedInfo.authority_type,
});
}, [!!newFeedInfo.content, !!newFeedInfo.authorityType]);
}, [!!newFeedInfo.content, !!newFeedInfo.authority_type]);

const { mutate: addFeedMutate } = useAddFeed();

Expand Down
2 changes: 1 addition & 1 deletion services/feed/src/write/components/WriteDropdownsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const WriteDropdownBox = ({ setNewFeedInfo }: WriteDropdownBoxProps) => {
}, [selectedCategory]);

useEffect(() => {
setNewFeedInfo((state) => ({ ...state, authorityType: selectedAuthority.authority }));
setNewFeedInfo((state) => ({ ...state, authority_type: selectedAuthority.authority }));
}, [selectedAuthority]);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion services/feed/src/write/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export interface PostFeedResponse {
title: string;
content: string;
category_id: string;
authorityType: string;
authority_type: string;
}

0 comments on commit b45151e

Please sign in to comment.