Skip to content

Commit

Permalink
refactor: 버튼 문구 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2820 committed Nov 21, 2023
1 parent fd47f65 commit 27edd85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/ContestPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const notFoundProblem = {
};

const INITIAL_PROBLEM_ID = 6;
const RUN_SIMULATION = '테스트 실행';
const CANCEL_SIMULATION = '실행 취소';

export default function ContestPage() {
const CONTEST_NAME = 'Test'; // api로 받을 정보
Expand Down Expand Up @@ -74,11 +76,11 @@ export default function ContestPage() {
<SimulationResultList resultList={simulationResults}></SimulationResultList>
{isSimulating ? (
<button className={execButtonStyle} onClick={handleSimulationCancel}>
실행 취소
{CANCEL_SIMULATION}
</button>
) : (
<button className={execButtonStyle} onClick={handleSimulate}>
테스트 실행
{RUN_SIMULATION}
</button>
)}
</div>
Expand Down

0 comments on commit 27edd85

Please sign in to comment.