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/Export.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps/Notes/components/Export.js') diff --git a/apps/Notes/components/Export.js b/apps/Notes/components/Export.js index e7966e4..0838cea 100644 --- a/apps/Notes/components/Export.js +++ b/apps/Notes/components/Export.js @@ -1,10 +1,12 @@ import styles from '../Notes.module.scss' import React, {useState} from 'react' +import useSettings from 'hooks/useSettings' import useNotes from '../hooks/useNotes' import {handleSelect, handleSelectAll, handleExport} from '../helpers/export' const Export = ({setAction}) => { const {notes} = useNotes() + const {t} = useSettings() const [ids, setIds] = useState(notes.map(n => n.noteId)) const sortFn = (a, b) => new Date(b.updated_at) - new Date(a.updated_at) @@ -13,17 +15,17 @@ const Export = ({setAction}) => { return (
-
{setAction('')}}>Back
+
{setAction('')}}>{t('back')}
-

Click to export your notes:

+

{t('notes_click_to_export')}

handleExport(e, ids, notes)} /> -

Notes to export:

+

{t('notes_to_export')}

{ onChange={e => handleSelectAll(e, notes, setIds)} checked={notes.length === ids.length} /> - +
    {notes.sort(sortFn).map(note => ( -- cgit v1.2.3