Skip to content

Commit a6908d2

Browse files
committed
prettier changes
1 parent 20c5ae3 commit a6908d2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/waterfall-chart/useWaterFallChart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { IChartElement, ITransaction, IUseWaterfallChartReturnType } from "../types/types";
2-
import { getIntervalAndYPoints, getLargestCumulativeSum, getSmallestCumulativeSum } from "./utils";
1+
import { IChartElement, ITransaction, IUseWaterfallChartReturnType } from '../types/types';
2+
import { getIntervalAndYPoints, getLargestCumulativeSum, getSmallestCumulativeSum } from './utils';
33

44
const useWaterfallChart = (
55
transactions: Array<ITransaction>,
@@ -57,4 +57,4 @@ const useWaterfallChart = (
5757
return { chartElements, yValueForZeroLine, yAxisPoints, yAxisScale, calculateBarWidth };
5858
};
5959

60-
export default useWaterfallChart;
60+
export default useWaterfallChart;

src/waterfall-chart/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
IGetIntervalAndYPointsReturnType,
3-
ITransaction
4-
} from '../types/types';
1+
import { IGetIntervalAndYPointsReturnType, ITransaction } from '../types/types';
52

63
export function getLargestCumulativeSum(arr: Array<ITransaction>): number {
74
let maxSum = arr[0]?.value; // Initialize maxSum and currentSum with the first element of the array

0 commit comments

Comments
 (0)