From 26721219802be2ae9655943e610554a1b47eafbd Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 14 Aug 2021 19:13:46 +0200 Subject: copy to clipboard, icons, notes key --- apps/Notes/components/List.js | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'apps/Notes/components/List.js') diff --git a/apps/Notes/components/List.js b/apps/Notes/components/List.js index 19a5643..a4e0e8f 100644 --- a/apps/Notes/components/List.js +++ b/apps/Notes/components/List.js @@ -5,8 +5,7 @@ import useSort from '../hooks/useSort' import fetchJson from 'lib/fetchJson' import {Layout} from 'components' import ListItem from './ListItem' -import NoteView from './NoteView' -import Note from './Note' +import Actions from './Actions' const List = () => { const [fetchedNote, setFetchedNote] = useState() @@ -27,10 +26,12 @@ const List = () => { return ( <> { - action === '' && ( + action === '' ? ( <>
setAction('addNote')}>New note
+ {/*
setAction('import')}>Import
+
{}}>Export
*/}
@@ -58,31 +59,12 @@ const List = () => {
- ) - } - { - action === 'addNote' && ( - - ) - } - { - action === 'showNote' && ( - - ) - } - { - action === 'editNote' && ( - ) } -- cgit v1.2.3