1
0
Fork 0
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:
Fedor Katurov 2022-08-05 16:56:00 +07:00
parent cedf0adcfa
commit 1bb08f72e6
11 changed files with 224 additions and 101 deletions

View file

@ -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 }) => {