From 87fce164859bba3283fa8ab9d0a0120ecc685044 Mon Sep 17 00:00:00 2001 From: chsua Date: Mon, 17 Jul 2023 17:26:55 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#54)=20=ED=86=B5=EA=B3=84=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=ED=83=80=EC=9E=85/?= =?UTF-8?q?=EC=9D=B8=ED=84=B0=EB=B2=A0=EC=9D=B4=EC=8A=A4=20=EC=98=A4?= =?UTF-8?q?=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/VoteStatistics/mockData.ts | 6 +++--- frontend/src/components/VoteStatistics/type.ts | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/VoteStatistics/mockData.ts b/frontend/src/components/VoteStatistics/mockData.ts index 4bf15bc66..e1a819c67 100644 --- a/frontend/src/components/VoteStatistics/mockData.ts +++ b/frontend/src/components/VoteStatistics/mockData.ts @@ -6,9 +6,9 @@ export const mockVoteResult = { age: { underTeenager: { total: 10, female: 10, male: 0, name: '10대 미만' }, teenager: { total: 20, female: 10, male: 10, name: '10대' }, - twenites: { total: 10, female: 2, male: 8, name: '20대' }, - thirites: { total: 20, female: 16, male: 4, name: '30대' }, - fourties: { total: 40, female: 30, male: 10, name: '40대' }, + twenties: { total: 10, female: 2, male: 8, name: '20대' }, + thirties: { total: 20, female: 16, male: 4, name: '30대' }, + forties: { total: 40, female: 30, male: 10, name: '40대' }, fifties: { total: 2, female: 1, male: 1, name: '50대' }, aboveFifties: { total: 3, female: 2, male: 1, name: '60대 이상' }, }, diff --git a/frontend/src/components/VoteStatistics/type.ts b/frontend/src/components/VoteStatistics/type.ts index 2f28a8707..df27d1ab4 100644 --- a/frontend/src/components/VoteStatistics/type.ts +++ b/frontend/src/components/VoteStatistics/type.ts @@ -8,9 +8,9 @@ interface VoteDetailResult { export type AgeCategory = | 'underTeenager' | 'teenager' - | 'twenites' - | 'thirites' - | 'fourties' + | 'twenties' + | 'thirties' + | 'forties' | 'fifties' | 'aboveFifties'; @@ -18,9 +18,9 @@ export interface VoteResult extends VoteDetailResult { age: { underTeenager: VoteDetailResult; teenager: VoteDetailResult; - twenites: VoteDetailResult; - thirites: VoteDetailResult; - fourties: VoteDetailResult; + twenties: VoteDetailResult; + thirties: VoteDetailResult; + forties: VoteDetailResult; fifties: VoteDetailResult; aboveFifties: VoteDetailResult; };