Skip to content

Commit

Permalink
fix: 토글 빌드 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Jan 30, 2024
1 parent bee94d1 commit ace2f97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/organisms/IngredientAddModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const IngredientAddModal: React.FC<{
const [memoContent, setMemoContent] = useState('');
const { currentCount, handleIncreaseCount, handleDecreaseCount } = useCount();

const toggleIsInFreezer: (e: React.MouseEvent) => void = (e) => {
e.stopPropagation();
const toggleIsInFreezer: () => void = () => {
setIsInFreezer((prev) => !prev);
};

Expand Down Expand Up @@ -64,7 +63,7 @@ const IngredientAddModal: React.FC<{
svgComponent={<FreezerIcon />}
title="냉동보관"
>
<Toggle isToggleOn={isInFreezer} toggleState={toggleIsInFreezer} />
<Toggle isToggleOn={isInFreezer} onClick={toggleIsInFreezer} />
</IngredientAddItemContainer>
<IngredientAddItemContainer
isRow={false}
Expand Down

0 comments on commit ace2f97

Please sign in to comment.