Skip to content

Commit

Permalink
merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Jan 15, 2024
1 parent 6e4e805 commit e07985a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-strict-ignore
import React, { memo } from 'react';

import {
Expand All @@ -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';

Expand All @@ -15,7 +16,7 @@ type ReportTableRowProps = {
balanceTypeOp?: string;
groupByItem: string;
mode: string;
style?: object;
style?: CSSProperties;
monthsCount: number;
};

Expand All @@ -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 (
<Row
key={item[groupByItem]}
collapsed={true}
style={{
color: theme.tableText,
Expand All @@ -52,11 +52,11 @@ export const ReportTableRow = memo(
? item.monthData.map(month => {
return (
<Cell
key={amountToCurrency(month[balanceTypeOp])}
style={{
minWidth: 85,
...styles.tnum,
}}
key={amountToCurrency(month[balanceTypeOp])}
value={amountToCurrency(month[balanceTypeOp])}
title={
Math.abs(month[balanceTypeOp]) > 100000 &&
Expand Down

0 comments on commit e07985a

Please sign in to comment.