diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx index 09b8a5575a4..a8bdd771e27 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableList.tsx @@ -1,6 +1,5 @@ - // @ts-strict-ignore -import React, { memo } from 'react'; +import React from 'react'; import { type CSSProperties, theme } from '../../../../style'; import { View } from '../../../common/View'; diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx index 3db5ac9fe5a..20aa7639076 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx @@ -1,3 +1,4 @@ +// @ts-strict-ignore import React, { memo } from 'react'; import { @@ -6,7 +7,7 @@ import { integerToCurrency, } from 'loot-core/src/shared/util'; -import { styles, theme } from '../../../../style'; +import { type CSSProperties, styles, theme } from '../../../../style'; import { Row, Cell } from '../../../table'; import { type GroupedEntity } from '../../entities'; @@ -15,7 +16,7 @@ type ReportTableRowProps = { balanceTypeOp?: string; groupByItem: string; mode: string; - style?: object; + style?: CSSProperties; monthsCount: number; }; @@ -28,10 +29,9 @@ export const ReportTableRow = memo( style, monthsCount, }: ReportTableRowProps) => { - const average = amountToInteger(item[balanceTypeOp]) / monthsCount; + const average: number = amountToInteger(item[balanceTypeOp]) / monthsCount; return ( { return ( 100000 &&