Skip to content

Commit

Permalink
refactor: className snake case로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
D0Dam committed Nov 15, 2023
1 parent 7ac76f2 commit 6fce323
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/StarRating/EnterStarRateContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function EnterStarRateContainer({ rating }: { rating: number }) {

return (
<div
className={styles.starRateContainer}
className={styles['star-rate-container']}
onMouseLeave={() => {
handleMouseLeave();
setStarQuantity(0);
Expand Down
2 changes: 1 addition & 1 deletion src/components/StarRating/LeaveStarRateContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function LeaveStarRateContainer({ rating }: { rating: number }) {
const { handleMouseEnter } = useContext(StarRateContext);
return (
<div
className={styles.starRateContainer}
className={styles['star-rate-container']}
onMouseEnter={handleMouseEnter}
>
{ [1, 2, 3, 4, 5].map((num) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/StarRating/StarRating.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.starRateContainer {
.star-rate-container {
display: flex;
align-items: center;
width: 160px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/StarRating/StarRatingPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {

function StarRatingPreview({ rate }: Props) {
return (
<div className={styles.starRateContainer}>
<div className={styles['star-rate-container']}>
{[1, 2, 3, 4, 5].map((num) => (
<Star
key={num}
Expand Down

0 comments on commit 6fce323

Please sign in to comment.