Skip to content

Commit

Permalink
refactor : cn으로 통일화
Browse files Browse the repository at this point in the history
  • Loading branch information
guesung committed Aug 12, 2023
1 parent f42fe1d commit 25f5d58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { useOnClickOutside } from '@/hooks/useOnClickOutside';
import { StrictPropsWithChildren } from '@/types';
import cn from '@/utils/cn';
import clsx from 'clsx';
import Image from 'next/image';
import { useRef, useState } from 'react';

Expand Down Expand Up @@ -124,7 +123,7 @@ interface LeftCaptionProps {

function LeftCaption({ children, isError }: StrictPropsWithChildren<LeftCaptionProps>) {
if (!children) return;
return <span className={clsx(isError && 'text-warning')}>{children}</span>;
return <span className={cn(isError && 'text-warning')}>{children}</span>;
}
function RightCaption({ children }: StrictPropsWithChildren) {
if (!children) return;
Expand Down

0 comments on commit 25f5d58

Please sign in to comment.