delete logs
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { useQuery } from "@tanstack/react-query"
|
import { useQuery } from "@tanstack/react-query"
|
||||||
import { AwardNotComplete } from "./award-not-complete"
|
import { AwardNotComplete } from "./award-not-complete"
|
||||||
import { getAwardsList } from "../../services/api/awards"
|
import { getAwardsList } from "../../services/api/awards"
|
||||||
import { useEffect } from "react"
|
|
||||||
import { AwardsResponse } from "../../types"
|
import { AwardsResponse } from "../../types"
|
||||||
|
|
||||||
export const Awards = () => {
|
export const Awards = () => {
|
||||||
@@ -10,7 +9,6 @@ export const Awards = () => {
|
|||||||
queryFn: getAwardsList
|
queryFn: getAwardsList
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => { console.log("data =>", data?.data) }, [data])
|
|
||||||
if (isLoading) return <p>LOADING...</p>
|
if (isLoading) return <p>LOADING...</p>
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-10">
|
<div className="flex flex-col gap-10">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { installationReportsCol } from "../../utility/reports"
|
import { installationReportsCol } from "../../utility/reports"
|
||||||
import { Table } from "../common/table"
|
import { Table } from "../common/table"
|
||||||
import { useEffect, useState } from "react"
|
import { useState } from "react"
|
||||||
import { SortingState } from "@tanstack/react-table"
|
import { SortingState } from "@tanstack/react-table"
|
||||||
import { useQuery } from "@tanstack/react-query"
|
import { useQuery } from "@tanstack/react-query"
|
||||||
import { getRegisterDeviceList } from "../../services/api/register-device"
|
import { getRegisterDeviceList } from "../../services/api/register-device"
|
||||||
@@ -11,10 +11,6 @@ export const InstallationReports = () => {
|
|||||||
queryKey: ["register-device"],
|
queryKey: ["register-device"],
|
||||||
queryFn: getRegisterDeviceList
|
queryFn: getRegisterDeviceList
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log("data =>", data)
|
|
||||||
}, [data])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Table columns={installationReportsCol} data={data?.data?.data} sorting={sorting} setSorting={setSorting} isLoading={isLoading} />
|
<Table columns={installationReportsCol} data={data?.data?.data} sorting={sorting} setSorting={setSorting} isLoading={isLoading} />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useEffect, useState } from "react"
|
import { useState } from "react"
|
||||||
import { Table } from "../common/table"
|
import { Table } from "../common/table"
|
||||||
import { SortingState } from "@tanstack/react-table"
|
import { SortingState } from "@tanstack/react-table"
|
||||||
import { scoresCol } from "../../utility/score"
|
import { scoresCol } from "../../utility/score"
|
||||||
@@ -11,11 +11,6 @@ export const Score = () => {
|
|||||||
queryKey: ["score-list"],
|
queryKey: ["score-list"],
|
||||||
queryFn: getScoresList
|
queryFn: getScoresList
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log("data =>", data)
|
|
||||||
}, [data])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Table sorting={sorting} setSorting={setSorting} columns={scoresCol} data={data?.data} tableStatus={data?.score} isLoading={isLoading} />
|
<Table sorting={sorting} setSorting={setSorting} columns={scoresCol} data={data?.data} tableStatus={data?.score} isLoading={isLoading} />
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useEffect, useState } from "react"
|
import { useState } from "react"
|
||||||
import { Table } from "../common/table"
|
import { Table } from "../common/table"
|
||||||
import { SortingState } from "@tanstack/react-table"
|
import { SortingState } from "@tanstack/react-table"
|
||||||
import { transactionsCol } from "../../utility/transactions"
|
import { transactionsCol } from "../../utility/transactions"
|
||||||
@@ -12,10 +12,6 @@ export const Transactions = () => {
|
|||||||
queryKey: ["transactions-list"],
|
queryKey: ["transactions-list"],
|
||||||
queryFn: getTransactionsList
|
queryFn: getTransactionsList
|
||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log("data=>", data)
|
|
||||||
}, [data])
|
|
||||||
return (
|
return (
|
||||||
<Table sorting={sorting} setSorting={setSorting} columns={transactionsCol} data={data?.data?.data} isLoading={isLoading} />
|
<Table sorting={sorting} setSorting={setSorting} columns={transactionsCol} data={data?.data?.data} isLoading={isLoading} />
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user