From 71cc09db93ec9b079a30593e14ca57c98fdc94ac Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 21 Aug 2021 19:54:37 +0200 Subject: color themes --- apps/Notes/components/Export.js | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'apps/Notes/components/Export.js') diff --git a/apps/Notes/components/Export.js b/apps/Notes/components/Export.js index 7232632..e7966e4 100644 --- a/apps/Notes/components/Export.js +++ b/apps/Notes/components/Export.js @@ -6,6 +6,7 @@ import {handleSelect, handleSelectAll, handleExport} from '../helpers/export' const Export = ({setAction}) => { const {notes} = useNotes() const [ids, setIds] = useState(notes.map(n => n.noteId)) + const sortFn = (a, b) => new Date(b.updated_at) - new Date(a.updated_at) if (!notes) return null @@ -23,7 +24,7 @@ const Export = ({setAction}) => { onClick={e => handleExport(e, ids, notes)} />

Notes to export:

-
+
{ />
- {notes.map(note => ( -
- handleSelect(note.noteId, ids, setIds)} - /> -
-
- ))} +
) -- cgit v1.2.3