Skip to content

Commit

Permalink
readme dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaeyeon1 committed Nov 30, 2023
1 parent d4d235a commit f2667f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions client/src/api/readme-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export const useGetReadMeQuery = (params: IReadMeParams) => {
enabled: !!params.blogId,
});

const data: {
readMeDto: { blogName: string; content: string; isMe: boolean };
} = backendData;
const data: { blogName: string; content: string; isMe: boolean } = backendData;
return { data, isLoading, error };
};

Expand Down
2 changes: 1 addition & 1 deletion client/src/app/[blogName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Home = ({ params }: { params: { blogName: string } }) => {

useEffect(() => {
setWriteList(sidebarData?.sidebarDtos);
setReadMe(readMeData?.readMeDto);
setReadMe(readMeData);
}, [sidebarData, readMeData]);

return (
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/write/readme/[blogName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ReadMe = ({ params }: { params: { blogName: string } }) => {
});

useEffect(() => {
setContent(readMeData.readMeDto.content);
setContent(readMeData.content);
}, [readMeData]);

const readmeSaveOnClick = () => {
Expand Down
4 changes: 2 additions & 2 deletions client/src/constant/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const getCurrentThemeClass = (
export const API_BASE_URL =
'http://glogglogglog-env.eba-fuksumx7.ap-northeast-2.elasticbeanstalk.com';

export const OAUTH2_REDIRECT_URI = 'http://localhost:3000/oauth2/redirect';
// export const OAUTH2_REDIRECT_URI = 'http://15.164.221.35:3000/oauth2/redirect';
// export const OAUTH2_REDIRECT_URI = 'http://localhost:3000/oauth2/redirect';
export const OAUTH2_REDIRECT_URI = 'http://15.164.221.35:3000/oauth2/redirect';

export const GITHUB_AUTH_URL =
API_BASE_URL + '/oauth2/authorization/github?redirect_uri=' + OAUTH2_REDIRECT_URI;

0 comments on commit f2667f3

Please sign in to comment.