From 59b83b9d1b49a4028f5b2840ce0200bfdc46dcde Mon Sep 17 00:00:00 2001 From: Alihaghighattalab Date: Sun, 18 Aug 2024 13:50:05 +0330 Subject: [PATCH] delete logs --- src/components/awards/index.tsx | 2 -- src/components/installation-reports/index.tsx | 6 +----- src/components/score/index.tsx | 7 +------ src/components/transactions/index.tsx | 6 +----- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/components/awards/index.tsx b/src/components/awards/index.tsx index d8b92af..2eb4d07 100644 --- a/src/components/awards/index.tsx +++ b/src/components/awards/index.tsx @@ -1,7 +1,6 @@ import { useQuery } from "@tanstack/react-query" import { AwardNotComplete } from "./award-not-complete" import { getAwardsList } from "../../services/api/awards" -import { useEffect } from "react" import { AwardsResponse } from "../../types" export const Awards = () => { @@ -10,7 +9,6 @@ export const Awards = () => { queryFn: getAwardsList }) - useEffect(() => { console.log("data =>", data?.data) }, [data]) if (isLoading) return

LOADING...

return (
diff --git a/src/components/installation-reports/index.tsx b/src/components/installation-reports/index.tsx index 7f6e044..377e74b 100644 --- a/src/components/installation-reports/index.tsx +++ b/src/components/installation-reports/index.tsx @@ -1,6 +1,6 @@ import { installationReportsCol } from "../../utility/reports" import { Table } from "../common/table" -import { useEffect, useState } from "react" +import { useState } from "react" import { SortingState } from "@tanstack/react-table" import { useQuery } from "@tanstack/react-query" import { getRegisterDeviceList } from "../../services/api/register-device" @@ -11,10 +11,6 @@ export const InstallationReports = () => { queryKey: ["register-device"], queryFn: getRegisterDeviceList }) - - useEffect(() => { - console.log("data =>", data) - }, [data]) return ( diff --git a/src/components/score/index.tsx b/src/components/score/index.tsx index a719abb..e79d456 100644 --- a/src/components/score/index.tsx +++ b/src/components/score/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from "react" +import { useState } from "react" import { Table } from "../common/table" import { SortingState } from "@tanstack/react-table" import { scoresCol } from "../../utility/score" @@ -11,11 +11,6 @@ export const Score = () => { queryKey: ["score-list"], queryFn: getScoresList }) - - useEffect(() => { - console.log("data =>", data) - }, [data]) - return (
) diff --git a/src/components/transactions/index.tsx b/src/components/transactions/index.tsx index 9261f68..c40d9cd 100644 --- a/src/components/transactions/index.tsx +++ b/src/components/transactions/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from "react" +import { useState } from "react" import { Table } from "../common/table" import { SortingState } from "@tanstack/react-table" import { transactionsCol } from "../../utility/transactions" @@ -12,10 +12,6 @@ export const Transactions = () => { queryKey: ["transactions-list"], queryFn: getTransactionsList }) - - useEffect(() => { - console.log("data=>", data) - }, [data]) return (
)