diff --git a/src/components/Questions/QuestionFinished.tsx b/src/components/Questions/QuestionFinished.tsx index 890c25f22..b9c9083cd 100644 --- a/src/components/Questions/QuestionFinished.tsx +++ b/src/components/Questions/QuestionFinished.tsx @@ -13,28 +13,19 @@ type ProgressStatButtonProps = { icon: ReactNode; label: string; count: number; - onClick: () => void; }; -function ProgressStatButton(props: ProgressStatButtonProps) { - const { icon, label, count, onClick, isDisabled = false } = props; +function ProgressStatLabel(props: ProgressStatButtonProps) { + const { icon, label, count } = props; return ( - + ); } @@ -43,12 +34,11 @@ type QuestionFinishedProps = { didNotKnowCount: number; skippedCount: number; totalCount: number; - onReset: (type: QuestionProgressType | 'reset') => void; + onReset: () => void; }; export function QuestionFinished(props: QuestionFinishedProps) { - const { knowCount, didNotKnowCount, skippedCount, totalCount, onReset } = - props; + const { knowCount, didNotKnowCount, skippedCount, onReset } = props; return (
@@ -63,31 +53,25 @@ export function QuestionFinished(props: QuestionFinishedProps) {

- } label="Knew" count={knowCount} - isDisabled={knowCount === 0} - onClick={() => onReset('know')} /> - } label="Learned" count={didNotKnowCount} - isDisabled={didNotKnowCount === 0} - onClick={() => onReset('dontKnow')} /> - } label="Skipped" count={skippedCount} - isDisabled={skippedCount === 0} - onClick={() => onReset('skip')} />
+ + {totalSolved} / {totalCount} + +
@@ -46,8 +71,7 @@ export function QuestionsProgress(props: QuestionsProgressProps) { Knew - {knowCount}{' '} - Items + {knowCount} Items @@ -55,8 +79,7 @@ export function QuestionsProgress(props: QuestionsProgressProps) { Learnt - {didNotKnowCount}{' '} - Items + {didNotKnowCount} Items @@ -64,8 +87,7 @@ export function QuestionsProgress(props: QuestionsProgressProps) { Skipped - {skippedCount}{' '} - Items + {skippedCount} Items