Skip to content

Commit

Permalink
fix: Result View 페이지 중앙 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-wooyeon committed Dec 27, 2023
1 parent 772a24d commit dd58c66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/ResultView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

import "../App.css";
import Button from '../components/Button/Button';

function getMent(percent: number) {
Expand Down Expand Up @@ -39,7 +40,7 @@ const ResultView: React.FC<ResultViewProps> = ({
const percent = (totalAnswer.length / quiz.length) * 100;

return (
<>
<div className="App">
<header className='App-header'>
<h1>{totalAnswer.length}개 맞췄슴다-!</h1>
<p>{getMent(percent)}</p>
Expand All @@ -49,8 +50,8 @@ const ResultView: React.FC<ResultViewProps> = ({
다시하기
</Button>
</section>
</>
</div>
);
};

export default ResultView;
export default ResultView;

0 comments on commit dd58c66

Please sign in to comment.