1
0
Fork 0

chore: Fixing linter warnings

This commit is contained in:
Joost De Cock 2022-07-12 20:31:53 +02:00
parent f9e3236253
commit 8225009e96
25 changed files with 20 additions and 187 deletions

View file

@ -52,21 +52,6 @@ const renderOptions = (groups, pattern, t) => {
const PatternOptions = ({ pattern, before=null, after=null }) => {
const { t } = useTranslation([`o_${pattern}`, 'og'])
const sortOptions = (options) => {
if (typeof options === 'undefined') return []
const sorted = []
const translated = {}
for (const o of options) {
const translation = intl.messages['measurements.' + o] || o
translated[translation] = o
}
const order = Object.keys(translated)
order.sort()
for (const o of order) sorted.push(translated[o])
return sorted
}
return (
<div>
{before}