Skip to content

Commit

Permalink
feat: 내가 참가한 대회 시작일, 확정여부 받아오기
Browse files Browse the repository at this point in the history
  • Loading branch information
cweedlee committed Aug 30, 2024
1 parent 223165d commit e3ce786
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/agenda/Home/MyAgendaBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MyAgendaBtn = () => {
};
const myList =
useFetchGet<MyTeamDataProps[]>('/profile/current/list')?.data || [];

console.log(myList);
return (
<div
className={`${styles.myAgendaContainer} ${
Expand Down
6 changes: 3 additions & 3 deletions components/agenda/Home/MyTeamInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ const MyTeamInfo = ({
return <div>참가중인 일정이 없습니다.</div>;
}
// myTeamInfo.isOfficial = true; //css test
// const startDate = new Date();
const startDate = new Date(myTeamInfo.agendaStartTime);
//아래 주석달린 부분은 api 변경시 추가 예정입니다.
return (
<div className={styles.Container} key={key}>
{/* <div className={agendastyles.agendaDateBox}>
<div className={agendastyles.agendaDateBox}>
<div className={agendastyles.agendaStartDateMonth}>
{fillZero(`${startDate.getMonth()}`, 2)}
</div>

<div className={agendastyles.agendaStartDateDay}>
{fillZero(`${startDate.getDate()}`, 2)}
</div>
</div> */}
</div>
<div className={styles.infoContainer}>
<div className={styles.teamInfoContainer}>
<h2 className={styles.teamTitle}>
Expand Down
2 changes: 2 additions & 0 deletions types/agenda/agendaDetail/agendaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export interface MyTeamDataProps {
agendaKey: string; // 대회 고유 키
agendaTitle: string;
agendaLocation: string; // ENUM 상단참고
agendaStartTime?: Date | string;
teamStatus: string;
teamKey: string; // 내 팀 조회를 위한 key
isOfficial: boolean; //공식대회여부
teamName: string; //fe 추가 0728 : 와이어프레임 참고
Expand Down

0 comments on commit e3ce786

Please sign in to comment.