pl-fe: Remove unused code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
7abeee3d1c
commit
5027a893d8
1 changed files with 0 additions and 5 deletions
|
@ -1,13 +1,9 @@
|
|||
import React from 'react';
|
||||
import { FormattedNumber } from 'react-intl';
|
||||
import { z } from 'zod';
|
||||
|
||||
/** Check if a value is REALLY a number. */
|
||||
const isNumber = (value: unknown): value is number => typeof value === 'number' && !isNaN(value);
|
||||
|
||||
/** The input is a number and is not NaN. */
|
||||
const realNumberSchema = z.coerce.number().refine(n => !isNaN(n));
|
||||
|
||||
const roundDown = (num: number) => {
|
||||
if (num >= 100 && num < 1000) {
|
||||
num = Math.floor(num);
|
||||
|
@ -55,7 +51,6 @@ const isIntegerId = (id: string): boolean => new RegExp(/^-?[0-9]+$/g).test(id);
|
|||
|
||||
export {
|
||||
isNumber,
|
||||
realNumberSchema,
|
||||
roundDown,
|
||||
shortNumberFormat,
|
||||
isIntegerId,
|
||||
|
|
Loading…
Reference in a new issue