Skip to content

Commit f4b8164

Browse files
committed
fix: 체크리스트 disable시 클래스 수정
1 parent bf07bbc commit f4b8164

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/api/[...path]/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ async function handleRequest(req: NextRequest, method: 'GET' | 'POST' | 'PUT' |
2424
}
2525

2626
const response = await axios(config);
27-
2827
return NextResponse.json(response.data, { status: response.status });
2928
} catch (error: unknown) {
3029
if (isAxiosError(error)) {

src/components/CheckListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const CheckListItem = ({ name, checked, className, disabled, onClick }: CheckLis
3333
return (
3434
<div
3535
className={clsx(
36-
'w-full bg-white border-2 border-slate-900 rounded-[1.68rem] px-3 py-2.25 flex gap-4 items-center cursor-pointer',
37-
disabled && 'opacity-50 cursor-not-allowed',
36+
'w-full bg-white border-2 border-slate-900 rounded-[1.68rem] px-3 py-2.25 flex gap-4 items-center',
37+
disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer',
3838
className,
3939
)}
4040
onClick={onClick}

0 commit comments

Comments
 (0)