-
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.
* fix: scheduleDrawer createFooter 동작 오류 해결 * refactor: scheduleDrawer template badge 디자인 수정 * fix: scheduleDrawer open 시 템플릿 초기화 * fix: TodayButton bottom position 수정 * fix: 일정 수정 오류 해결 * fix: 선택 일정만 수정, 삭제 적용 * fix: inputMode numeric setting * refactor: remove base url * refactor: add main page error handler * refactor: remove unused path of mockServiceWorker * refactor: apply ScheduleListPage error handler * docs: update readme
- Loading branch information
1 parent
c57953c
commit 4d697c1
Showing
5 changed files
with
59 additions
and
17 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
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
41 changes: 41 additions & 0 deletions
41
src/pages/Home/pages/ScheduleListPage/components/MonthlySummary/MonthlySummary.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import SummaryCard from "@pages/Home/next-components/HomeHeader/MonthlyBudgetSummary/SummaryCard"; | ||
import { Stack } from "@mui/material"; | ||
import React from "react"; | ||
|
||
interface MonthlySummaryProps { | ||
income: number; | ||
expense: number; | ||
isError: boolean; | ||
} | ||
|
||
function MonthlySummary({ isError, expense, income }: MonthlySummaryProps) { | ||
if (isError) { | ||
return ( | ||
<Stack | ||
py={3} | ||
px={2.5} | ||
spacing="6px" | ||
bgcolor="primary.main" | ||
sx={{ color: "#FFF" }} | ||
> | ||
<SummaryCard title="수입" amount={0} /> | ||
<SummaryCard title="지출" amount={0} /> | ||
</Stack> | ||
); | ||
} | ||
|
||
return ( | ||
<Stack | ||
py={3} | ||
px={2.5} | ||
spacing="6px" | ||
bgcolor="primary.main" | ||
sx={{ color: "#FFF" }} | ||
> | ||
<SummaryCard title="수입" amount={income} /> | ||
<SummaryCard title="지출" amount={expense} /> | ||
</Stack> | ||
); | ||
} | ||
|
||
export default MonthlySummary; |
1 change: 1 addition & 0 deletions
1
src/pages/Home/pages/ScheduleListPage/components/MonthlySummary/index.ts
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 @@ | ||
export { default as MonthlySummary } from "./MonthlySummary"; |