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

[회비 납부] 회비 납부 페이지 구현 #10

Merged
merged 34 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5dfd96d
chore: yarn start 에러 수정
dooohun Feb 9, 2024
670fbc2
chore: emotion/react css 속성 에러 수정
dooohun Feb 9, 2024
82f8830
feat: 회비 전체 조회 API 추가
dooohun Feb 11, 2024
21e8984
feat: 회비 전체 조회 UI 및 로직 초안 완성
dooohun Feb 11, 2024
7852e2e
Merge branch 'main' into feature/#2
dooohun Feb 11, 2024
2411356
refactor: API와 회비 관련 모델 수정
dooohun Feb 11, 2024
b7029b6
refactor: data의 타입을 MemberShipDues로 수정
dooohun Feb 12, 2024
731b1c4
chore: linebreak-style 추가
dooohun Feb 12, 2024
79e9adf
refactor: 인터셉터를 추가함에 따라 fetcher를 바로 반환하도록 수정
dooohun Feb 12, 2024
8177cf0
refactor: DuesDetail을 외부에서 사용하도록 수정
dooohun Feb 12, 2024
3615d66
feat: 회비 내역 완성
dooohun Feb 12, 2024
df167fb
feat: useBooleanState 훅 생성
dooohun Feb 12, 2024
3b35517
chore: yarn install 추가
dooohun Feb 12, 2024
aae7acd
refactor: / 추가
dooohun Feb 12, 2024
f3fb4fa
feat: LoadingSpinner 추가
dooohun Feb 12, 2024
3ec73c0
refactor: 린트 에러 수정
dooohun Feb 12, 2024
d6e58fc
chore: props spreading 린트 무시
dooohun Feb 12, 2024
a117e3b
refactor: 린트 에러로 label을 div로 수정
dooohun Feb 12, 2024
441d523
refactor: 오타 수정
dooohun Feb 12, 2024
cb5840c
refactor: api에 인자를 명시적으로 받도록 수정
dooohun Feb 12, 2024
9934d9d
refactor: 현재 년도를 의미하는 currentYear로 변수명 수정
dooohun Feb 12, 2024
30ad2dd
refactor: MembershipDues를 DuesInfo로 수정
dooohun Feb 12, 2024
c66bea7
Merge branch 'main' into feature/#2
dooohun Feb 12, 2024
69b3041
feat: /tracks API를 적용
dooohun Feb 12, 2024
5ce8cc8
refactor: data로 통일
dooohun Feb 12, 2024
68ff20e
fix: key 에러 수정
dooohun Feb 12, 2024
bcaf1b0
feat: suspense 추가
dooohun Feb 12, 2024
fa2eef1
refactor: Track API를 사용하여 ALL_TRACKS 대체
dooohun Feb 13, 2024
5358ed3
chore: gitignore에 install-statge.gz 추가
dooohun Feb 13, 2024
17e2260
refactor: getAllDues를 옵셔널 track 매개변수를 처리하도록 수정
dooohun Feb 13, 2024
bb82479
feat: useQueryParam 훅 추가
dooohun Feb 13, 2024
baa6a1d
feat: 상단에 새로운 pagniation 추가
dooohun Feb 13, 2024
02f4fa0
chore: install-statge.gz 추가
dooohun Feb 13, 2024
f17d4a2
Merge remote-tracking branch 'origin/main' into feature/#2
dooohun Feb 13, 2024
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
Prev Previous commit
Next Next commit
refactor: getAllDues를 옵셔널 track 매개변수를 처리하도록 수정
dooohun committed Feb 13, 2024
commit 17e2260f317bc4159abfbf017e1174de178bc18d
5 changes: 4 additions & 1 deletion src/api/Dues/index.ts
Original file line number Diff line number Diff line change
@@ -6,4 +6,7 @@ export interface DuesOptions {
track?: string;
}

export const getAllDues = ({ year, track }: DuesOptions) => accessClient.get<DuesInfo>(`/dues?year=${year}&track=${track}`);
export const getAllDues = ({ year, track }: DuesOptions) => {
const query = track ? `/dues?year=${year}&track=${track}` : `/dues?year=${year}`;
return accessClient.get<DuesInfo>(query);
};