File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
components/modal/modalComponents Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1- import { cls } from "@/lib/utils" ;
1+ import { bindCls } from "@/lib/utils" ;
22import { FolderItemType } from "@/types/modalTypes" ;
33import { useState } from "react" ;
44import { 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 ) }
Original file line number Diff line number Diff line change 1- import { cls } from "@/lib/utils" ;
1+ import { bindCls } from "@/lib/utils" ;
22
33const 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"
Original file line number Diff line number Diff line change 1- import { cls } from "@/lib/utils" ;
21import Image from "next/image" ;
32
43const ModalShareItem = ( {
Original file line number Diff line number Diff line change 11// tailwind 동적 스타일을 위한 함수
2- export const cls = ( ...cls : string [ ] ) => {
2+ export const bindCls = ( ...cls : string [ ] ) => {
33 return cls . join ( " " ) ;
44} ;
You can’t perform that action at this time.
0 commit comments