Skip to content

Commit

Permalink
refactor: toClassSelector 유틸 함수 파일로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Jan 23, 2024
1 parent e7e7774 commit b2548f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ACTIONS, EVENTS } from "react-joyride";

import { toClassSelector } from "../../../utils/cssSelector";
import { Coachmark, type CoachmarkProps } from "../../coachmark";

interface QuizCoachmarkProps {
Expand Down Expand Up @@ -60,7 +61,3 @@ const STEPS: CoachmarkProps["steps"] = [
placement: "top",
},
];

function toClassSelector(className: string) {
return `.${className}`;
}
3 changes: 3 additions & 0 deletions packages/frontend/src/utils/cssSelector.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function toClassSelector(className: string) {
return `.${className}`;
}

0 comments on commit b2548f6

Please sign in to comment.