From cbf1e1829920649ceea533d46215398b8b56216f Mon Sep 17 00:00:00 2001 From: Tom French Date: Fri, 2 Sep 2022 15:12:24 +0100 Subject: [PATCH] style: linting --- .../desktop-client/src/components/schedules/EditSchedule.js | 2 +- .../desktop-client/src/components/schedules/SchedulesTable.js | 2 +- packages/desktop-client/src/components/schedules/index.js | 2 +- packages/desktop-client/src/locales/index.js | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/desktop-client/src/components/schedules/EditSchedule.js b/packages/desktop-client/src/components/schedules/EditSchedule.js index 7d2ec3f..1310c74 100644 --- a/packages/desktop-client/src/components/schedules/EditSchedule.js +++ b/packages/desktop-client/src/components/schedules/EditSchedule.js @@ -1,4 +1,5 @@ import React, { useEffect, useReducer } from 'react'; +import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; import { useParams, useHistory } from 'react-router-dom'; @@ -28,7 +29,6 @@ import SimpleTransactionsTable from '../accounts/SimpleTransactionsTable'; import { OpSelect } from '../modals/EditRule'; import { Page, usePageType } from '../Page'; import { AmountInput, BetweenAmountInput } from '../util/AmountInput'; -import { useTranslation } from 'react-i18next'; function mergeFields(defaults, initial) { let res = { ...defaults }; diff --git a/packages/desktop-client/src/components/schedules/SchedulesTable.js b/packages/desktop-client/src/components/schedules/SchedulesTable.js index 2935bbf..c2f1773 100644 --- a/packages/desktop-client/src/components/schedules/SchedulesTable.js +++ b/packages/desktop-client/src/components/schedules/SchedulesTable.js @@ -1,4 +1,5 @@ import React, { useState, useMemo } from 'react'; +import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; import * as monthUtils from 'loot-core/src/shared/months'; @@ -24,7 +25,6 @@ import Check from 'loot-design/src/svg/v2/Check'; import DisplayId from '../util/DisplayId'; import { StatusBadge } from './StatusBadge'; -import { useTranslation } from 'react-i18next'; export let ROW_HEIGHT = 43; diff --git a/packages/desktop-client/src/components/schedules/index.js b/packages/desktop-client/src/components/schedules/index.js index 8564519..9b358b6 100644 --- a/packages/desktop-client/src/components/schedules/index.js +++ b/packages/desktop-client/src/components/schedules/index.js @@ -1,4 +1,5 @@ import React from 'react'; +import { useTranslation } from 'react-i18next'; import { useHistory } from 'react-router-dom'; import { useSchedules } from 'loot-core/src/client/data-hooks/schedules'; @@ -7,7 +8,6 @@ import { View, Button } from 'loot-design/src/components/common'; import { Page } from '../Page'; import { SchedulesTable, ROW_HEIGHT } from './SchedulesTable'; -import { useTranslation } from 'react-i18next'; export default function Schedules() { let history = useHistory(); diff --git a/packages/desktop-client/src/locales/index.js b/packages/desktop-client/src/locales/index.js index 01023d4..5c0fea7 100644 --- a/packages/desktop-client/src/locales/index.js +++ b/packages/desktop-client/src/locales/index.js @@ -1,6 +1,7 @@ -import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; +import i18n from 'i18next'; + import enUK from './en-GB.json'; import esES from './es-ES.json';