mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 20:20:21 +01:00
fix: no placeholder appearing when home is empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user