From e66d7a8d1f7e44b53787a99e4a36f127c5caf63b Mon Sep 17 00:00:00 2001 From: kimminjae <162538553+Darkthos@users.noreply.github.com> Date: Mon, 13 May 2024 00:36:32 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=ED=81=AC=EB=A0=88=EB=94=A7?= =?UTF-8?q?=20=EB=B6=80=EC=A1=B1=ED=95=9C=20=EC=83=81=ED=83=9C=EB=A1=9C=20?= =?UTF-8?q?=ED=88=AC=ED=91=9C=ED=95=98=EA=B8=B0=20=EB=88=84=EB=A5=B4?= =?UTF-8?q?=EB=A9=B4=20NoCreditModal=EB=9C=A8=EA=B2=8C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐Ÿ“ docs: apisํด๋”๋ฐ ํ•˜์œ„ํŒŒ์ผ ์ƒ์„ฑ * โœจ feat: utils/createQueryParams.js ์ฟผ๋ฆฌ ์ž๋™ ์ƒ์„ฑ ์œ ํ‹ธ ์ถ”๊ฐ€ * โœจ feat: get idols, donations, chart api ๊ตฌํ˜„ * โœ… test: App.jsx์— getIdols ์ด๋ฏธ์ง€ ๋ Œ๋”๋ง ์‹คํ—˜ * ๐Ÿ“ docs: Chart ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ App.jsx ์‹œ์ž‘ ์ค€๋น„ * โ™ป๏ธ refactor: getIdolsApi, getDonationsApi ๋ฆฌ์ŠคํŠธ๊นŒ์ง€ ๋ฐ›์•„์˜ค๋Š”๊ฑฐ์—์„œ ๋ฐ์ดํ„ฐ๊นŒ์ง€๋งŒ ๋ฐ›์•„์˜ค๊ฒŒ ๋ณ€๊ฒฝ * โœจ feat: chart.jsx ๊ตฌ์กฐ๋งŒํ˜•์„ฑ * ๐Ÿ› fix: map ์ž˜ ๋ Œ๋”๋ง๋˜๊ฒŒ * โ™ป๏ธ refactor: ์ฟผ๋ฆฌ ์ƒ์„ฑํ•จ์ˆ˜ ์ฝ”๋“œ ๊ฐ„๊ฒฐํ•˜๊ฒŒ ๋ฐ”๊ฟˆ * โ™ป๏ธ refactor: getIdols, getCharts useState๊ฐ์ฒด๋ฅผ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ „๋‹ฌํ•ด์„œ ๊ฒ€์ƒ‰์กฐ๊ฑด์„ ์„ค์ •ํ•˜๋Š” ๊ตฌ์กฐ๋กœ ๋ฐ”๋ฐ”๊ฟจ์Šต๋‹ˆ๋‹ค. * โœจ feat: useMediaQuery ์ปค์Šคํ…€ํ›… ์ถ”๊ฐ€ * โœจ feat: ํˆฌํ‘œํ•˜๊ธฐ ๊ธฐ๋Šฅ์„ ์ œ์™ธํ•œ ๋ชจ๋“  chart๊ธฐ๋Šฅ ๊ตฌํ˜„ * โœจ feat: postVotes ๊ตฌํ˜„ * ๐Ÿงช test * โœจ feat: ์“ธ๋ชจ์—†๋Š” ์•„์ด์ฝ˜ ์ œ๊ฑฐ, ํˆฌํ‘œ์‹œ์Šคํ…œ ํŽธ๋ฆฌํ•˜๊ฒŒ ๋ฐ”๊ฟˆ, css ์˜ˆ์˜๊ฒŒ ์ˆ˜์ • * โœจ feat: voteModal ๋ชจ๋ฐ”์ผ ๋ฐ˜์‘ํ˜• css ์™„๋ฒฝ๊ตฌํ˜„ * โœจ feat: Dialog.jsx * ๐Ÿ”ฅremove: dialog chart๋ธŒ๋žœ์น˜ ์™„์„ฑ ํ›„ ์ด์–ด์„œ ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. * ๐Ÿ”ฅ remove: ๋ถˆํ•„์š”ํ•œ ์ฃผ์„ ์ œ๊ฑฐ * โœ… test: mobile๋กœ ์ ‘์†ํ•ด์„œ ํ…Œ์ŠคํŠธ * โœจ feat: ๋กœ์ปฌ์Šคํ† ๋ฆฌ์ง€ ๊ตฌํ˜„ ์ฐจํŠธ ํˆฌํ‘œํ•˜๊ธฐ ํด๋ฆญ์‹œ voteModal ์†Œํ™˜ * ๐Ÿ“ Docs: ์ž˜๋ชป merge๋œ postvote.js ์‚ญ์ œ * โœจ feat: chart๊ตฌํ˜„ * โ™ป๏ธ refactor: chart 1์ฐจ ๋ฆฌํŒฉํ† ๋ง(ChartList ์ปดํฌ๋„ŒํŠธ ๋ถ„๋ฆฌ) * โ™ป๏ธ refactor: chart์ปดํฌ๋„ŒํŠธ ์ปค์Šคํ…€ํ›…์œผ๋กœ ๋ถ„๋ฆฌ * ๐Ÿ”€ Merge branch 'main' of https://github.com/BestSprinters/i-Konnect into feat/chart * โ™ป๏ธ refactor: ์ตœ์ข…์ ๊ฒ€ * ๐Ÿ› fix: ํฌ๋ ˆ๋”ง ๋ถ€์กฑํ•  ๋•Œ ํˆฌํ‘œ์‹œ, ๋ชจ๋‹ฌ์ฐฝ ์•ˆ๊บผ์ง€๊ฒŒ ํ•˜๊ณ  ์„ ํƒ๋œ ์•„์ด๋Œ ๊ทธ๋Œ€๋กœ ์œ ์ง€ * โ™ป๏ธ refactor: ํ”„๋กญ ๋ฐ›๋Š” ๋ฐฉ์‹ ๋ณ€ํ™” * ๐Ÿ› fix: ์„ ํƒ๋œ ์„ฑ๋ณ„์— ๋”ฐ๋ผ ํˆฌํ‘œ์ฐฝ๋œจ๊ฒŒํ•จ * ๐Ÿ› fix: ํฌ๋ ˆ๋”ง ์ถฉ์ „์‹œ ๋ฐ”๋กœ ํˆฌํ‘œํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋ณ€๊ฒฝ * Merge branch 'main' of https://github.com/BestSprinters/i-Konnect into feat/chart * โœจ feat: ํฌ๋ ˆ๋”ง์—†์ด ํˆฌํ‘œํ•˜๋ฉด NoCreditModal ๋„์›€ * ๐Ÿ“ฆ chore: merge๋กœ์ธํ•ด ์ค‘๋ณต๋œ ์ฝ”๋“œ ์ˆ˜์ • --- src/components/Chart.jsx | 18 ++++++++---------- src/components/MyCredit.jsx | 2 +- src/components/SponsorCard.jsx | 2 +- src/components/VoteModal.jsx | 14 +++++++------- src/hooks/useToggle.js | 2 +- 5 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/components/Chart.jsx b/src/components/Chart.jsx index b8baba8..f1e731f 100644 --- a/src/components/Chart.jsx +++ b/src/components/Chart.jsx @@ -1,7 +1,4 @@ -import { useContext } from 'react'; - import chartIcon from '../assets/imgs/ic_chart.svg'; -import CreditContext from '../contexts/CreditAmount'; import useChartLoader from '../hooks/useChartLoader'; import useMediaQuery from '../hooks/useMediaQuery'; import useToggle from '../hooks/useToggle'; @@ -9,12 +6,13 @@ import Button from './Button'; import ChartList from './ChartList'; import ChartMoreButton from './ChartMoreButton'; import ChoiceGender from './ChoiceGender'; +import NoCreditModal from './NoCreditModal'; import VoteModal from './VoteModal'; function Chart() { - const { creditAmount, setCreditAmount } = useContext(CreditContext); const matches = useMediaQuery('(min-width: 1280px)'); - const { toggle, handleToggle } = useToggle(); + const [voteToggle, handleVoteToggle] = useToggle(); + const [noCreditToggle, handleNoCreditToggle] = useToggle(); const { chartList, hasMore, updateChartOption, setChartList, chartOption } = useChartLoader({ gender: 'female', @@ -28,7 +26,7 @@ function Chart() {

์ด๋‹ฌ์˜ ์ฐจํŠธ

-