Skip to content

Commit

Permalink
♻️ Refactor: 가격 숫자값으로 변경 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwn8918 committed Sep 19, 2024
1 parent d86e34f commit fe0fd55
Show file tree
Hide file tree
Showing 104 changed files with 4,685 additions and 8 deletions.
4 changes: 2 additions & 2 deletions acoountbook/src/components/home/content/Content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export default function Content() {
date="2024-01-05"
category="식비"
content="세광양대창"
price="100,000원"
price={100000}
/>
<ContentItem
date="2024-01-10"
category="도서"
content="모던 자바스크립트"
price="40,500원"
price={40500}
/>
</C.Container>
);
Expand Down
2 changes: 1 addition & 1 deletion acoountbook/src/components/home/content/ContentItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function ContentItem({ date, category, content, price }) {
{category} - {content}
</C.Content>
</div>
<C.Price>{price}</C.Price>
<C.Price>{price.toLocaleString()}</C.Price>
</C.Container>
);
}
2 changes: 1 addition & 1 deletion acoountbook/src/components/home/month/Month.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as M from "./Month.style";
import MonthItem from "./MonthItem";

export default function Month({ months, onMonthSelect }) {
const [selected, setSelected] = useState();
const [selected, setSelected] = useState(1);

const handleClick = (month) => {
setSelected(month);
Expand Down
2 changes: 1 addition & 1 deletion acoountbook/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useState } from "react";

export default function Home() {
const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
const [selectedMonth, setSelectedMonth] = useState();
const [selectedMonth, setSelectedMonth] = useState(1);

const handleMonthSelect = (month) => {
setSelectedMonth(month);
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions node_modules/.yarn-integrity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

292 changes: 292 additions & 0 deletions node_modules/uuid/CHANGELOG.md

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions node_modules/uuid/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions node_modules/uuid/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe0fd55

Please sign in to comment.