Skip to content

Commit

Permalink
Removed unused import useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakedEdr1 committed Jul 1, 2024
1 parent 187b2b6 commit d97ab70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/view/components/edit/EditTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const EditTitle: FC<Props> = ({

function handleSave() {
try {
if (!text.trim()) return; // Do not save if the text is empty
if (!text.trim()) return;

if (!statement) throw new Error("Statement is undefined");

Expand Down
2 changes: 1 addition & 1 deletion src/view/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentProps, FC, useEffect } from "react";
import { ComponentProps, FC } from "react";
import IconButton from "../iconButton/IconButton";
import EllipsisIcon from "../../../assets/icons/ellipsisIcon.svg?react";
import "./Menu.scss";
Expand Down

0 comments on commit d97ab70

Please sign in to comment.