소스 검색

remove toast

AykutSarac 2 년 전
부모
커밋
64d412a075
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/utils/jsonParser.ts

+ 0 - 2
src/utils/jsonParser.ts

@@ -1,4 +1,3 @@
-import toast from "react-hot-toast";
 
 
 const calculateSize = (
 const calculateSize = (
   text: string | [string, string][],
   text: string | [string, string][],
@@ -143,7 +142,6 @@ export const parser = (jsonStr: string, isExpanded = true) => {
     return { nodes, edges };
     return { nodes, edges };
   } catch (error) {
   } catch (error) {
     console.error(error);
     console.error(error);
-    toast.error("An error occured while parsing JSON data!");
     return {
     return {
       nodes: [],
       nodes: [],
       edges: [],
       edges: [],