Skip to content

Commit

Permalink
[FeFeat] 신청인원/ 최대인원 확인, 아이콘추가#1106
Browse files Browse the repository at this point in the history
  • Loading branch information
Junho Jeon committed Nov 24, 2023
1 parent c961f45 commit 956234d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/modal/tournament/TournamentRegistryModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dynamic from 'next/dynamic';
import { useSetRecoilState } from 'recoil';
import { MdPeopleAlt } from 'react-icons/md';
import { QUILL_FORMATS } from 'types/quillTypes';
import { TournamentInfo } from 'types/tournamentTypes';
import { modalState } from 'utils/recoil/modal';
Expand All @@ -22,6 +23,7 @@ export default function TournamentRegistryModal({
status,
type,
endTime,
player_cnt,
}: TournamentInfo) {
const setModal = useSetRecoilState(modalState);
const Date = startTime.toString().split(':').slice(0, 2).join(':');
Expand All @@ -48,7 +50,10 @@ export default function TournamentRegistryModal({
<div className={styles.title}>{title}</div>
<div className={styles.tournamentInfo}>
<div className={styles.startTime}>{Date}</div>
<div className={styles.participants}>현재인원 / 최대인원</div>
<div className={styles.participants}>
<MdPeopleAlt />
<div className={styles.player}>{player_cnt} / 8</div>
</div>
</div>
<Quill
className={styles.quillViewer}
Expand Down
10 changes: 10 additions & 0 deletions styles/modal/event/TournamentRegistryModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@
justify-content: center;
align-items: center;
}

.participants {
display: flex;
padding-top: 0.1rem;
padding-bottom: 0.1rem qw;
justify-content: center;
.player {
padding-left: 0.2rem;
}
}

0 comments on commit 956234d

Please sign in to comment.