Skip to content

Commit

Permalink
[Refactor] 토너먼트 타입 임시로 대문자로 통일 #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearsu committed Nov 18, 2023
1 parent baf73c7 commit e35856f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/tournament-record/WinnerSwiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'swiper/css';
import 'swiper/css/effect-coverflow';

interface WinnerSwiperProps {
type: 'rookie' | 'master' | 'custom';
type: 'ROOKIE' | 'MASTER' | 'CUSTOM';
}

export default function WinnerSwiper(props: WinnerSwiperProps) {
Expand Down
4 changes: 2 additions & 2 deletions pages/api/pingpong/tournament/dummyTournamentData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for (let i = 28; i >= 1; i--) {
startTime: new Date(),
endTime: new Date(),
status: status,
type: 'rookie',
type: 'ROOKIE',
winnerIntraId: users[i % 3].intraId,
winnerImageUrl: users[i % 3].imageUrl,
player_cnt: 8,
Expand All @@ -52,7 +52,7 @@ for (let i = 28; i >= 1; i--) {
startTime: new Date(),
endTime: new Date(),
status: status,
type: 'master',
type: 'MASTER',
winnerIntraId: users[i % 3].intraId,
winnerImageUrl: users[i % 3].imageUrl,
player_cnt: 8,
Expand Down
2 changes: 1 addition & 1 deletion pages/tournament-record.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function TournamentRecord() {
<button>Master</button>
<button>Custom</button>
</div>
<WinnerSwiper type='rookie' />
<WinnerSwiper type='ROOKIE' />
<div className={styles.winnerInfoContainer}>
<p className={styles.userId}>cadet2147</p>
<p className={styles.gameInfo}>
Expand Down

0 comments on commit e35856f

Please sign in to comment.