diff --git a/src/components/CustomButton/index.jsx b/src/components/CustomButton/index.jsx index 59ed298..c902e55 100644 --- a/src/components/CustomButton/index.jsx +++ b/src/components/CustomButton/index.jsx @@ -2,7 +2,7 @@ /* eslint-disable react/require-default-props */ import React from 'react'; import PropTypes from 'prop-types'; - +import { motion } from 'framer-motion'; import s from './styles.module.scss'; /** @@ -27,7 +27,9 @@ const CustomButton = ({ children, }) => { return ( - + ); }; diff --git a/src/pages/ListPage/Credit/index.jsx b/src/pages/ListPage/Credit/index.jsx index 56a3391..e53d515 100644 --- a/src/pages/ListPage/Credit/index.jsx +++ b/src/pages/ListPage/Credit/index.jsx @@ -1,6 +1,7 @@ import React from 'react'; import styles from './styles.module.scss'; import CreditIcon from '@/assets/icons/Credit'; +import { motion } from 'framer-motion'; const Credit = () => { return ( @@ -13,7 +14,13 @@ const Credit = () => {
- + + 충전하기 +
); diff --git a/src/pages/ListPage/MonthlyChart/components/ChartElement/index.jsx b/src/pages/ListPage/MonthlyChart/components/ChartElement/index.jsx index f47341a..1b64590 100644 --- a/src/pages/ListPage/MonthlyChart/components/ChartElement/index.jsx +++ b/src/pages/ListPage/MonthlyChart/components/ChartElement/index.jsx @@ -3,19 +3,25 @@ import PropTypes from 'prop-types'; import styles from './styles.module.scss'; import { numberWithCommas } from '@/utils/numberWithCommas'; import Profile from '@/components/Profile'; +import { motion } from 'framer-motion'; /** - * + * * @param {object} idol 아이돌 객체 * @param {number} ranking 아이돌 순위 */ - const ChartElement = ({ idol, ranking }) => { const { name, profilePicture } = idol; const totalVotes = numberWithCommas(idol.totalVotes); return ( -
  • +
    @@ -24,11 +30,13 @@ const ChartElement = ({ idol, ranking }) => {
    {name}
    {totalVotes}
    -
  • + ); }; + ChartElement.propTypes = { idol: PropTypes.object, ranking: PropTypes.number, }; + export default ChartElement;