From f08f6ca0a9d337efff280d4d1669a41b5d9c31c2 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Thu, 2 Sep 2021 22:28:11 +0200 Subject: finish translations, force maximize --- apps/Notes/components/Import.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/Notes/components/Import.js') diff --git a/apps/Notes/components/Import.js b/apps/Notes/components/Import.js index 700acb4..ad2b831 100644 --- a/apps/Notes/components/Import.js +++ b/apps/Notes/components/Import.js @@ -1,10 +1,11 @@ import styles from '../Notes.module.scss' import React, {useState} from 'react' -import fetchJson from 'lib/fetchJson' +import useSettings from 'hooks/useSettings' import useNotes from '../hooks/useNotes' import {state, color, handleImport, handleChange} from '../helpers/import' const Import = ({setAction}) => { + const {t} = useSettings() const [files, setFiles] = useState() const [done, setDone] = useState([]) const {mutateNotes} = useNotes() @@ -12,14 +13,14 @@ const Import = ({setAction}) => { return (
-
{setAction('')}}>Back
+
{setAction('')}}>{t('back')}
handleImport(e, files, mutateNotes, setDone)}> - Import new notes: + {t('notes_import')}
{files && ( <> -

Notes to import:

+

{t('notes_to_import')}

    {[...files].map((f, i) =>
  • {f.name} {state(done[i])}
  • )}
{ done.length === 0 - ? - :

Import finished.

Go back to notes list or choose other notes to import.

+ ? + :

{t('import_finished')}

{t('notes_import_go_back')}

} )} -- cgit v1.2.3