diff --git a/src/components/card/Card.tsx b/src/components/card/Card.tsx index 2cea67b..c846da3 100644 --- a/src/components/card/Card.tsx +++ b/src/components/card/Card.tsx @@ -12,14 +12,21 @@ interface CardProps { } export const Card = (props: CardProps) => { - const { title, goal, openMenu, startDate, endDate, className } = props; + const { title, goal, openMenu, onClick, startDate, endDate, className } = props; + + const handleOpenMenu = (event: React.MouseEvent) => { + event.stopPropagation(); + if (openMenu) openMenu(event); + }; + return (
-
+
diff --git a/src/components/common/input/Input.tsx b/src/components/common/input/Input.tsx index 9713ae1..fb4c043 100644 --- a/src/components/common/input/Input.tsx +++ b/src/components/common/input/Input.tsx @@ -19,6 +19,7 @@ export interface InputProps { rows?: number; maxLength?: number; isScroll?: boolean; + readOnly?: boolean; } export const Input = (props: InputProps) => { const { @@ -39,6 +40,7 @@ export const Input = (props: InputProps) => { maxLength, name, isScroll, + readOnly, } = props; const textareaRef = useRef(null); const [isWrapperFocus, setIsWrapperFocus] = useState(false); @@ -103,6 +105,7 @@ export const Input = (props: InputProps) => { name={name} className="w-full outline-none body1" inputMode={isInputModeNone ? 'none' : 'text'} + readOnly={readOnly} /> ) : (