Skip to content

Commit deef41e

Browse files
committed
Chore: cls 함수 이름 변경 - bindCls
1 parent c8ce491 commit deef41e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

components/modal/modalComponents/FolderItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cls } from "@/lib/utils";
1+
import { bindCls } from "@/lib/utils";
22
import { FolderItemType } from "@/types/modalTypes";
33
import { useState } from "react";
44
import { FaCheck } from "react-icons/fa6";
@@ -15,15 +15,15 @@ const FolderItem = ({ item }: { item: FolderItemType }) => {
1515
};
1616
return (
1717
<li
18-
className={cls(
18+
className={bindCls(
1919
bgColor,
2020
"w-full p-2 flex h-10 rounded-lg items-center justify-between"
2121
)}
2222
onClick={onClickFolder}
2323
>
2424
<div className="flex items-center gap-2">
2525
<div
26-
className={cls(
26+
className={bindCls(
2727
"text-base",
2828
selected ? "text-purple100" : "text-black300"
2929
)}

components/modal/modalComponents/ModalInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cls } from "@/lib/utils";
1+
import { bindCls } from "@/lib/utils";
22

33
const ModalInput = ({
44
placeholder,
@@ -12,7 +12,7 @@ const ModalInput = ({
1212
type="text"
1313
name={name}
1414
id={name}
15-
className={cls(
15+
className={bindCls(
1616
"w-full rounded-lg border border-gray300 py-[18px] px-[15px] mb-6 text-black300",
1717
"placeholder:text-base placeholder:text-gray400",
1818
"focus:outline-1px focus:outline-purple100"

components/modal/modalComponents/ModalShareItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { cls } from "@/lib/utils";
21
import Image from "next/image";
32

43
const ModalShareItem = ({

lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// tailwind 동적 스타일을 위한 함수
2-
export const cls = (...cls: string[]) => {
2+
export const bindCls = (...cls: string[]) => {
33
return cls.join(" ");
44
};

0 commit comments

Comments
 (0)