delete logs

This commit is contained in:
Alihaghighattalab
2024-08-18 13:50:05 +03:30
parent 93e7c3b206
commit 59b83b9d1b
4 changed files with 3 additions and 18 deletions
-2
View File
@@ -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 <p>LOADING...</p>
return (
<div className="flex flex-col gap-10">
@@ -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"
@@ -12,10 +12,6 @@ export const InstallationReports = () => {
queryFn: getRegisterDeviceList
})
useEffect(() => {
console.log("data =>", data)
}, [data])
return (
<Table columns={installationReportsCol} data={data?.data?.data} sorting={sorting} setSorting={setSorting} isLoading={isLoading} />
)
+1 -6
View File
@@ -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 (
<Table sorting={sorting} setSorting={setSorting} columns={scoresCol} data={data?.data} tableStatus={data?.score} isLoading={isLoading} />
)
+1 -5
View File
@@ -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 (
<Table sorting={sorting} setSorting={setSorting} columns={transactionsCol} data={data?.data?.data} isLoading={isLoading} />
)