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() {
이달의 차트
-