Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 아티클 마크다운 세팅을 변경한다. #964

Merged
merged 2 commits into from
Nov 19, 2024
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
15 changes: 6 additions & 9 deletions frontend/src/apis/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,33 @@ export const deleteToken = async () => {

export const postReissueAccessToken = async () => {
return await fetcher.post({
url: `${BASE_URL}${ENDPOINT.USER_ACCESS_TOKEN_REISSUE}`,
credentials: 'include',
url: BASE_URL + ENDPOINT.USER_ACCESS_TOKEN_REISSUE,
// 쿠키전달이기때문에 body가 비어있는 post
});
};

export const postSignUp = async ({ name, email, password }: { name: string; email: string; password: string }) => {
return await fetcher.post({
url: `${BASE_URL}${ENDPOINT.REGISTER}`,
url: BASE_URL + ENDPOINT.REGISTER,
body: { name, email, password },
credentials: 'include',
});
};

export const postSignIn = async ({ email, password }: { email: string; password: string }) => {
return await fetcher.post({
url: `${BASE_URL}${ENDPOINT.SIGN_IN}`,
url: BASE_URL + ENDPOINT.SIGN_IN,
body: { email, password },
credentials: 'include',
});
};

export const postResetPasswordMail = async (email: ResetPasswordArgs['email']) => {
return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD_SEND_MAIL}`, body: { email } });
return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD_SEND_MAIL, body: { email } });
};

export const postResetPasswordCode = async ({ email, code }: Pick<ResetPasswordArgs, 'email' | 'code'>) => {
return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD_CONFIRM_CODE}`, body: { email, code } });
return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD_CONFIRM_CODE, body: { email, code } });
};

export const postResetPassword = async ({ email, code, newPassword }: ResetPasswordArgs) => {
return await fetcher.post({ url: `${BASE_URL}${ENDPOINT.RESET_PASSWORD}`, body: { email, code, newPassword } });
return await fetcher.post({ url: BASE_URL + ENDPOINT.RESET_PASSWORD, body: { email, code, newPassword } });
};
2 changes: 1 addition & 1 deletion frontend/src/components/ArticleDetail/ArticleContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ArticleContent = () => {
<S.Title>{article?.title}</S.Title>
<MarkdownPreview
source={article?.content}
style={{ fontSize: '1.8rem', fontFamily: 'SUITE Variable' }}
style={{ fontSize: '1.6rem', lineHeight: '2.6rem', fontFamily: 'SUITE Variable' }}
wrapperElement={{
'data-color-mode': 'light',
}}
Expand Down
Loading