From 31ba77ea6ddb5a0b16024506caafdd748a30d911 Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Sun, 21 Aug 2022 00:09:30 +0200 Subject: [PATCH] Rename numbers helper --- src/components/Logs/LogCanvas.tsx | 2 +- src/components/Tune/Dialog/Curve/Table.tsx | 2 +- src/components/Tune/Dialog/Map.tsx | 2 +- src/pages/Diagnose.tsx | 2 +- src/pages/Logs.tsx | 2 +- src/utils/{number.ts => numbers.ts} | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename src/utils/{number.ts => numbers.ts} (100%) diff --git a/src/components/Logs/LogCanvas.tsx b/src/components/Logs/LogCanvas.tsx index 509069a..5218e22 100644 --- a/src/components/Logs/LogCanvas.tsx +++ b/src/components/Logs/LogCanvas.tsx @@ -13,7 +13,7 @@ import uPlot from 'uplot'; import { colorHsl, formatNumber, -} from '../../utils/number'; +} from '../../utils/numbers'; import LandscapeNotice from '../Tune/Dialog/LandscapeNotice'; import { Colors } from '../../utils/colors'; import touchZoomPlugin from '../../utils/uPlot/touchZoomPlugin'; diff --git a/src/components/Tune/Dialog/Curve/Table.tsx b/src/components/Tune/Dialog/Curve/Table.tsx index 0f135b1..66c2ff2 100644 --- a/src/components/Tune/Dialog/Curve/Table.tsx +++ b/src/components/Tune/Dialog/Curve/Table.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/no-array-index-key */ import { useCallback } from 'react'; -import { colorHsl } from '../../../../utils/number'; +import { colorHsl } from '../../../../utils/numbers'; const titleProps = { disabled: true }; diff --git a/src/components/Tune/Dialog/Map.tsx b/src/components/Tune/Dialog/Map.tsx index 087dd6c..c939be1 100644 --- a/src/components/Tune/Dialog/Map.tsx +++ b/src/components/Tune/Dialog/Map.tsx @@ -2,7 +2,7 @@ import { Grid } from 'antd'; import LandscapeNotice from './LandscapeNotice'; -import { colorHsl } from '../../../utils/number'; +import { colorHsl } from '../../../utils/numbers'; const { useBreakpoint } = Grid; diff --git a/src/pages/Diagnose.tsx b/src/pages/Diagnose.tsx index 9748b68..2a56896 100644 --- a/src/pages/Diagnose.tsx +++ b/src/pages/Diagnose.tsx @@ -35,7 +35,7 @@ import { loadToothLogs, } from '../utils/api'; import store from '../store'; -import { formatBytes } from '../utils/number'; +import { formatBytes } from '../utils/numbers'; import CompositeCanvas from '../components/TriggerLogs/CompositeCanvas'; import TriggerLogsParser, { CompositeLogEntry, diff --git a/src/pages/Logs.tsx b/src/pages/Logs.tsx index 794a416..153cf2d 100644 --- a/src/pages/Logs.tsx +++ b/src/pages/Logs.tsx @@ -39,7 +39,7 @@ import store from '../store'; import { formatBytes, msToTime, -} from '../utils/number'; +} from '../utils/numbers'; import useConfig from '../hooks/useConfig'; import { isExpression, diff --git a/src/utils/number.ts b/src/utils/numbers.ts similarity index 100% rename from src/utils/number.ts rename to src/utils/numbers.ts