Skip to content

Commit

Permalink
refacotr : clsx를 사용한 방식으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWook committed Dec 6, 2024
1 parent 233e39a commit 53959cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Common/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useRef, useEffect, useState } from 'react';
import { Margin } from '../Margin/Margin';
import { useToastStore } from '@/hooks/useToastStore';
import { clsx } from 'clsx';

type TextAreaProps = {
value: string;
Expand Down Expand Up @@ -80,7 +81,10 @@ export const TextArea = ({ value, setValue, font }: TextAreaProps) => {
return (
<div>
<textarea
className={`w-full m-auto overflow-hidden bg-transparent border-none resize-none min-h-[413px] min-w-[281px] ${font ? font : 'font-sans'}`}
className={clsx(
`w-full m-auto overflow-hidden bg-transparent border-none resize-none min-h-[413px] min-w-[281px]`,
font ? font : 'font-sans'
)}
style={{
lineHeight: lineHeight
}}
Expand Down

0 comments on commit 53959cb

Please sign in to comment.