-
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.
refactor: QA/QC로 발견된 버그를 해결합니다. (#282)
* refactor: 일정 중요도 명칭 결제 수단으로 변경 * refactor: 일정 추가 후 ScheduleDrawer reset해서 비우기 * refactor: ScheduleDrawer title typograpy 수정 * refactor: ScheduleDrawer 날짜 입력 칸 arrow 컬러 수정 * refactor: ScheduleDrawer 템플릿 선택 뱃지 구현 * refactor: ScheduleDrawer 반복 옵션 요약 표현 구현 * refactor: home/month mock api 수입/지출 금액 계산 * refactor: home/month, day mock api 수입/지출 금액 계산 * refactor: 불필요한 코드 제거 * refactor: 불필요한 코드 제거 * refactor: home/week mock api 수입 지출 계산 구현
- Loading branch information
1 parent
c078d03
commit ecf944c
Showing
18 changed files
with
245 additions
and
48 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
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
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
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
55 changes: 55 additions & 0 deletions
55
...onents/ScheduleDrawer/pages/ScheduleFormPage/components/SelectTemplate/SelectTemplate.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,55 @@ | ||
import { Box, Stack, Typography } from "@mui/material"; | ||
import { SCHEDULE_DRAWER } from "@constants/schedule.ts"; | ||
import { useState } from "react"; | ||
import { TemplateBadge } from "@components/ScheduleDrawer/pages/ScheduleFormPage/components/SelectTemplate/SelecteTemplate.styles.ts"; | ||
|
||
function SelectTemplate() { | ||
const [selected, setSelected] = useState(0); | ||
const templates = [ | ||
{ | ||
id: 1, | ||
name: "이전 템플릿", | ||
}, | ||
{ | ||
id: 2, | ||
name: "이전 템플릿", | ||
}, | ||
{ | ||
id: 3, | ||
name: "이전 템플릿", | ||
}, | ||
]; | ||
|
||
return ( | ||
<Box px={2.5}> | ||
<Stack py={1} spacing={1.5} sx={{ borderBottom: "1px solid #F7F7F8" }}> | ||
<Stack | ||
direction="row" | ||
justifyContent="space-between" | ||
alignItems="center" | ||
> | ||
<Typography variant="h2" color="#131416"> | ||
{SCHEDULE_DRAWER.template} | ||
</Typography> | ||
<Typography fontSize="12px" fontWeight={600} color="#8C919C"> | ||
{SCHEDULE_DRAWER.showAllTemplate} | ||
</Typography> | ||
</Stack> | ||
|
||
<Stack direction="row" spacing={1}> | ||
{templates.map((t) => ( | ||
<TemplateBadge | ||
key={t.id} | ||
$selected={selected === t.id} | ||
onClick={() => setSelected(t.id)} | ||
> | ||
{t.name} | ||
</TemplateBadge> | ||
))} | ||
</Stack> | ||
</Stack> | ||
</Box> | ||
); | ||
} | ||
|
||
export default SelectTemplate; |
13 changes: 13 additions & 0 deletions
13
...ScheduleDrawer/pages/ScheduleFormPage/components/SelectTemplate/SelecteTemplate.styles.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,13 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const TemplateBadge = styled.div<{ $selected: boolean }>` | ||
display: flex; | ||
padding: 7px 10px; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 20px; | ||
font-size: 12px; | ||
font-weight: 600; | ||
color: ${({ $selected }) => ($selected ? "#FFF" : "#8C919C")}; | ||
background-color: ${({ $selected }) => ($selected ? "#735BF2" : "#DEE0E3")}; | ||
`; |
3 changes: 3 additions & 0 deletions
3
src/components/ScheduleDrawer/pages/ScheduleFormPage/components/SelectTemplate/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,3 @@ | ||
import SelectTemplate from "@components/ScheduleDrawer/pages/ScheduleFormPage/components/SelectTemplate/SelectTemplate.tsx"; | ||
|
||
export default SelectTemplate; |
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
Oops, something went wrong.