From c75dbd5410dd0eed2576afdedcfeb6082b4f7225 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Sep 2021 09:57:50 -0700 Subject: Fix lint issues --- modern/src/common/formatter.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modern/src/common/formatter.js') diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js index 7a18d1af..0ff4e741 100644 --- a/modern/src/common/formatter.js +++ b/modern/src/common/formatter.js @@ -1,9 +1,6 @@ import moment from 'moment'; -import { useTranslation } from '../LocalizationProvider'; -export const formatBoolean = (value, t) => { - return value ? t('sharedYes') : t('sharedNo'); -} +export const formatBoolean = (value, t) => (value ? t('sharedYes') : t('sharedNo')); export const formatNumber = (value, precision = 1) => Number(value.toFixed(precision)); -- cgit v1.2.3