-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Duri-Salon/feat(salon)/income-statistic-shim
[feat] 매장 매출관리 그래프 페이지
- Loading branch information
Showing
11 changed files
with
589 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 14 additions & 6 deletions
20
apps/salon/src/components/income/RecentIncomeStatistic.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
import { Flex, Text } from '@duri-fe/ui'; | ||
import { IncomeMonthListType } from '@duri-fe/utils/src/apis/types/income'; | ||
|
||
import { ResponsiveBarChart } from './ResponsiveBarChart'; | ||
|
||
interface RecentIncomeStatisticProps { | ||
incomeMonthList: IncomeMonthListType[]; //선택, 이전, 이번달 매출 리스트 | ||
beforeRatio: number; //전월 대비 증감 | ||
nowRatio: number; //이번달 대비 증감 | ||
} | ||
|
||
export const RecentIncomeStatistic = ({ | ||
incomeMonthList, | ||
beforeRatio, | ||
nowRatio, | ||
}: RecentIncomeStatisticProps) => { | ||
console.log(incomeMonthList, beforeRatio, nowRatio); | ||
return <div>RecentIncomeStatistic</div>; | ||
return ( | ||
<Flex direction="column"> | ||
<Flex direction="column" align="flex-start" gap={8} padding="0 20px"> | ||
<Text typo="Title2">매장 매출 통계</Text> | ||
<Text typo="Caption1">최근 일주일간의 매장 매출을 보여줍니다.</Text> | ||
</Flex> | ||
<Flex margin="24px 0" padding="0 20px" height={180}> | ||
<ResponsiveBarChart data={incomeMonthList} /> | ||
</Flex> | ||
</Flex> | ||
); | ||
}; |
Oops, something went wrong.