From 98aabf47e818dbd60d08d02e79a8ed0c55fa46a7 Mon Sep 17 00:00:00 2001 From: Davide Segullo Date: Sat, 22 Jun 2024 00:13:54 +0200 Subject: [PATCH] style: :rotating_light: fix lint errors --- src/components/Output.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Output.tsx b/src/components/Output.tsx index 669477382..b16fdc997 100644 --- a/src/components/Output.tsx +++ b/src/components/Output.tsx @@ -94,7 +94,11 @@ type StyleProps = { }; export type OutputProps = ElementProps & StyleProps; -export type FormatNumberProps = ElementProps & { minimumFractionDigits?: number; decimal?: string; group?: string }; +export type FormatNumberProps = ElementProps & { + minimumFractionDigits?: number; + decimal?: string; + group?: string; +}; export const formatNumber = (params: FormatNumberProps) => { const { @@ -132,7 +136,7 @@ export const formatNumber = (params: FormatNumberProps) => { } : {}), }; - + const getFormattedVal = ( val: BigNumber, fallbackDecimals: number, @@ -191,7 +195,9 @@ export const formatNumber = (params: FormatNumberProps) => { formattedString = getFormattedVal(valueBN, PERCENT_DECIMALS, { suffix: '%' }); break; case OutputType.SmallPercent: - formattedString = getFormattedVal(valueBN.times(100), SMALL_PERCENT_DECIMALS, { suffix: '%' }); + formattedString = getFormattedVal(valueBN.times(100), SMALL_PERCENT_DECIMALS, { + suffix: '%', + }); break; case OutputType.Multiple: formattedString = getFormattedVal(valueBN, LEVERAGE_DECIMALS, { suffix: '×' });