feat: add "Listed actions" option in note context menu (#891)

This commit is contained in:
Aman Harwara
2022-02-23 20:51:34 +05:30
committed by GitHub
parent 5265a0d010
commit 209bd99fe5
7 changed files with 392 additions and 402 deletions

View File

@@ -18,6 +18,7 @@ import {
MAX_MENU_SIZE_MULTIPLIER,
BYTES_IN_ONE_MEGABYTE,
} from '@/constants';
import { ListedActionsOption } from './ListedActionsOption';
export type NotesOptionsProps = {
application: WebApplication;
@@ -602,6 +603,12 @@ export const NotesOptions = observer(
)}
{notes.length === 1 ? (
<>
<div className="min-h-1px my-2 bg-border"></div>
<ListedActionsOption
application={application}
closeOnBlur={closeOnBlur}
note={notes[0]}
/>
<div className="min-h-1px my-2 bg-border"></div>
<SpellcheckOptions appState={appState} note={notes[0]} />
<div className="min-h-1px my-2 bg-border"></div>