Skip to content

Commit

Permalink
Merge pull request #127 from codesquad-members-2023-proj02-team04/fea…
Browse files Browse the repository at this point in the history
…ture/feat/registration-126

feat #126: 회원가입 페이지 UX 개선
  • Loading branch information
sjuhan123 authored Sep 14, 2023
2 parents 7cf3c90 + 2e22f63 commit 9e88a48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions fe/src/hooks/useFetch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ const useFetch = <T,>(url?: string) => {
if (!url) return;

const JWTToken = localStorage.getItem('JWTToken');
console.log(contentsType);
const headers = {
Authorization: `Bearer ${JWTToken}`,
...contentsType,
};
console.log(headers);
const res = await fetch(url, {
method,
headers,
Expand Down
3 changes: 3 additions & 0 deletions fe/src/pages/Registration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ const Registration = () => {
<S.UserId>{username}</S.UserId>
<S.Notice>🥕</S.Notice>
</S.NoticeBox>
<S.LocationBox>
{primaryLocation ? primaryLocation.town : ''}
</S.LocationBox>
<S.AddLocationButtonBox>
<Button
buttonType="rectangle"
Expand Down
9 changes: 8 additions & 1 deletion fe/src/pages/Registration/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ export const UserImg = styled.img`
`;

export const NoticeBox = styled.div`
height: 15vh;
height: 10vh;
display: flex;
justify-content: center;
align-items: center;
`;

export const LocationBox = styled.div`
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 9e88a48

Please sign in to comment.