-
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.
feat : add statistics/index.js (#83)
통계 API 페이지 추가
- Loading branch information
1 parent
9d14d62
commit 7c76c2b
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Router, { useRouter } from 'next/router'; | ||
|
||
import DailyProfit from '@components/organisms/dailyProfit'; | ||
import DailyRevenue from '@components/organisms/dailyRevenue'; | ||
import MonthlyProfit from '@components/organisms/monthlyProfit'; | ||
import WeekItem from '@components/organisms/weekItem'; | ||
|
||
const Statistics = () => { | ||
|
||
const router = useRouter(); | ||
const id = router.query.id; | ||
|
||
return ( | ||
<> | ||
<DailyProfit id={id} /> | ||
<DailyRevenue id={id} /> | ||
<MonthlyProfit id={id} /> | ||
<WeekItem id={id} /> | ||
</> | ||
) | ||
} | ||
|
||
export default Statistics |