fix: no placeholder appearing when home is empty

This commit is contained in:
thecodrr
2020-09-15 09:29:43 +05:00
parent d011075252
commit a293a2f577

View File

@@ -5,6 +5,7 @@ import Note from "../components/note";
import { useStore, store } from "../stores/note-store";
import { useStore as useEditorStore } from "../stores/editor-store";
import ListContainer from "../components/list-container";
import NotesPlaceholder from "../components/placeholders/notesplacholder";
function Home() {
useEffect(() => store.refresh(), []);
@@ -18,6 +19,7 @@ function Home() {
item={(index, item) => (
<Note index={index} pinnable={false} item={item} />
)}
placeholder={NotesPlaceholder}
button={{ content: "Make a new note", onClick: () => newSession() }}
>
<GroupList