diff --git a/src/components/common/table.tsx b/src/components/common/table.tsx index c9acef6..5f96cea 100644 --- a/src/components/common/table.tsx +++ b/src/components/common/table.tsx @@ -14,7 +14,8 @@ type Props = { isLoading?: boolean, totalData?: number, tableScore?: number, - totalScore?: number + totalScore?: number, + showTotalScore?: boolean } type ADSortType = { @@ -22,7 +23,7 @@ type ADSortType = { value: 1 | -1 } -export const Table: FC = ({ columns, data, tableStatus = false, tableScore = 0, isLoading = false, totalData = 0, totalScore = 0 }) => { +export const Table: FC = ({ columns, data, tableStatus = false, tableScore = 0, isLoading = false, totalData = 0, totalScore = 0, showTotalScore = true }) => { const [aDSort, setADSort] = useState({ key: "", value: -1 @@ -81,9 +82,11 @@ export const Table: FC = ({ columns, data, tableStatus = false, tableScor
{tableStatus && `امتیاز حال حاضر : ${tableScore}`}
-
- {`امتیاز کل : ${totalScore}`} -
+ {showTotalScore && ( +
+ {`امتیاز کل : ${totalScore}`} +
+ )}
diff --git a/src/components/installation-reports/index.tsx b/src/components/installation-reports/index.tsx index 33510f6..57033c3 100644 --- a/src/components/installation-reports/index.tsx +++ b/src/components/installation-reports/index.tsx @@ -33,6 +33,6 @@ export const InstallationReports = () => { }) }, [mutate, params]) return ( -
+
) } \ No newline at end of file diff --git a/src/components/transactions/index.tsx b/src/components/transactions/index.tsx index f3d3f7c..39ef899 100644 --- a/src/components/transactions/index.tsx +++ b/src/components/transactions/index.tsx @@ -33,6 +33,6 @@ export const Transactions = () => { }) }, [mutate, params]) return ( -
+
) } \ No newline at end of file