mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
added note dropping and editing
This commit is contained in:
parent
cedf0adcfa
commit
1bb08f72e6
11 changed files with 224 additions and 101 deletions
|
@ -7,7 +7,9 @@ const NoteContext = createContext<ReturnType<typeof useNotes>>({
|
|||
hasMore: false,
|
||||
loadMore: async () => Promise.resolve(undefined),
|
||||
isLoading: false,
|
||||
submit: () => Promise.resolve(),
|
||||
create: () => Promise.resolve(),
|
||||
remove: () => Promise.resolve(),
|
||||
update: (id: number, text: string) => Promise.resolve(),
|
||||
});
|
||||
|
||||
export const NoteProvider: FC = ({ children }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue