Skip to content

Commit

Permalink
feat: 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed May 20, 2024
1 parent 5eeb7c7 commit b25b7d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export type UsageRankingType = {

export type RecapInfoType = {
usageTime: {
useTime: number;
useHour: number;
useDays: number;
useMinute: number;
hourData: Array<number>;
};
preferRegion: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/FirstTimeline/FirstTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const FirstTimeline = () => {
display: flex;
`}>
<Txt
label={`${recapInfo?.usageTime.useTime ?? ''}일`}
label={`${recapInfo?.usageTime.useDays ?? ''}일`}
color={'primaryBrand'}
typograph={'headlineMedium'}
/>
Expand All @@ -90,7 +90,7 @@ const FirstTimeline = () => {
`}>
<Txt label={'총'} color={'grey190'} typograph={'headlineMedium'} />
<Txt
label={`${recapInfo?.usageTime.useHour ?? ''}시간`}
label={`${recapInfo?.usageTime.useMinute ?? ''}시간`}
color={'primaryBrand'}
typograph={'headlineMedium'}
style={css`
Expand Down
4 changes: 2 additions & 2 deletions src/mocks/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { GetLibraryHistoriesResponse } from '../api/types';

export const getLibraryHistoriesMockReseponse: GetLibraryHistoriesResponse = {
usageTime: {
useTime: 73,
useHour: 171,
useDays: 73,
useMinute: 171,
hourData: [0, 0, 43, 21, 9, 10, 0, 3, 3, 32, 26, 24],
},
preferRegion: {
Expand Down

0 comments on commit b25b7d5

Please sign in to comment.