diff --git a/src/shared/ui/button/Button.tsx b/src/shared/ui/button/Button.tsx
index b9320f2..5e62c0c 100644
--- a/src/shared/ui/button/Button.tsx
+++ b/src/shared/ui/button/Button.tsx
@@ -6,7 +6,7 @@ interface ButtonProps extends ButtonVariants {
className?: string;
type?: 'button' | 'submit';
disabled?: boolean;
- formID?: string;
+ form?: string;
onClick?: () => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
@@ -17,7 +17,7 @@ const Button = ({
onClick,
type = 'button',
disabled = false,
- formID,
+ form,
className,
...props
}: ButtonProps) => {
@@ -26,7 +26,7 @@ const Button = ({
type={type}
onClick={onClick}
disabled={disabled}
- form={formID}
+ form={form}
className={twMerge(buttonStyles(props), className)}>
{children}
diff --git a/src/shared/ui/list-row/ListRow.tsx b/src/shared/ui/list-row/ListRow.tsx
index 91316f0..f81b247 100644
--- a/src/shared/ui/list-row/ListRow.tsx
+++ b/src/shared/ui/list-row/ListRow.tsx
@@ -1,10 +1,11 @@
import {ListRowStyles, type ListRowVariants} from './list-row-styles';
+import type {ReactNode} from 'react';
interface ListRowProps extends ListRowVariants {
selected?: boolean;
- leftIcon?: React.ReactNode;
+ leftIcon?: ReactNode;
title: string;
- rightIcon?: React.ReactNode;
+ rightIcon?: ReactNode;
className?: string;
}
diff --git a/src/shared/ui/list-row/list-row-styles.ts b/src/shared/ui/list-row/list-row-styles.ts
index 5b4135f..aea2286 100644
--- a/src/shared/ui/list-row/list-row-styles.ts
+++ b/src/shared/ui/list-row/list-row-styles.ts
@@ -1,7 +1,7 @@
import {tv, type VariantProps} from 'tailwind-variants';
export const ListRowStyles = tv({
- base: 'cursor-pointer bg-background w-full flex items-center rounded-[9px] pl-4.5 pr-7.5 py-4 gap-4 border',
+ base: 'bg-background w-full flex items-center rounded-[9px] pl-4.5 pr-7.5 py-4 gap-4 border',
variants: {
selected: {
true: 'border-primary',
diff --git a/src/widgets/assignment-page-layout/ui/AssignmentPageLayout.tsx b/src/widgets/assignment-page-layout/ui/AssignmentPageLayout.tsx
index 6dc960a..e9e80ed 100644
--- a/src/widgets/assignment-page-layout/ui/AssignmentPageLayout.tsx
+++ b/src/widgets/assignment-page-layout/ui/AssignmentPageLayout.tsx
@@ -1,23 +1,21 @@
import SurfaceCard from '@/shared/ui/SurfaceCard';
-import Button from '@/shared/ui/button/Button';
import {CourseSelector} from '@/features/course/filter-course';
+import type {ReactNode} from 'react';
interface AssignmentPageLayoutProps {
title: string;
- list: React.ReactNode;
+ list: ReactNode;
+ buttons: ReactNode;
courseOptions: string[];
onCourseSelect: (value: string) => void;
- onCancel: () => void;
- onConfirm: () => void;
}
export const AssignmentPageLayout = ({
title,
list,
+ buttons,
courseOptions,
onCourseSelect,
- onCancel,
- onConfirm,
}: AssignmentPageLayoutProps) => {
return (
@@ -31,14 +29,7 @@ export const AssignmentPageLayout = ({
{/* 하단 버튼 영역 */}
-
-
-
-
+ {buttons}
);
};