diff options
Diffstat (limited to 'modern/src/common/formatter.js')
-rw-r--r-- | modern/src/common/formatter.js | 5 |
1 files changed, 1 insertions, 4 deletions
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)); |