1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00
Files
joplin/packages/lib/components/shared/ShareNoteDialog/onUnshareNoteClick.ts

13 lines
324 B
TypeScript
Raw Normal View History

import ShareService from '../../../services/share/ShareService';
interface UnshareNoteEvent {
noteId: string;
}
const onUnshareNoteClick = async (event: UnshareNoteEvent) => {
await ShareService.instance().unshareNote(event.noteId);
await ShareService.instance().refreshShares();
};
export default onUnshareNoteClick;