* refactor: menuRow directive to MenuRow component * refactor: migrate footer to react * refactor: migrate actions menu to react * refactor: migrate history menu to react * fix: click outside handler use capture to trigger event before re-render occurs which would otherwise cause node.contains to return incorrect result (specifically for the account menu) * refactor: migrate revision preview modal to react * refactor: migrate permissions modal to react * refactor: migrate password wizard to react * refactor: remove unused input modal directive * refactor: remove unused delay hide component * refactor: remove unused filechange directive * refactor: remove unused elemReady directive * refactor: remove unused sn-enter directive * refactor: remove unused lowercase directive * refactor: remove unused autofocus directive * refactor(wip): note view to react * refactor: use mutation observer to deinit textarea listeners * refactor: migrate challenge modal to react * refactor: migrate note group view to react * refactor(wip): migrate remaining classes * fix: navigation parent ref * refactor: fully remove angular assets * fix: account switcher * fix: application view state * refactor: remove unused password wizard type * fix: revision preview and permissions modal * fix: remove angular comment * refactor: react panel resizers for editor * feat: simple panel resizer * fix: use simple panel resizer everywhere * fix: simplify panel resizer state * chore: rename simple panel resizer to panel resizer * refactor: simplify column layout * fix: editor mount safety check * fix: use inline onLoad callback for iframe, as setting onload after it loads will never call it * chore: fix note view test * chore(deps): upgrade snjs
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { AppState } from '@/ui_models/app_state';
|
|
import NotesIcon from '../../icons/il-notes.svg';
|
|
import { observer } from 'mobx-react-lite';
|
|
import { NotesOptionsPanel } from './NotesOptionsPanel';
|
|
import { WebApplication } from '@/ui_models/application';
|
|
import { PinNoteButton } from './PinNoteButton';
|
|
|
|
type Props = {
|
|
application: WebApplication;
|
|
appState: AppState;
|
|
};
|
|
|
|
export const MultipleSelectedNotes = observer(
|
|
({ application, appState }: Props) => {
|
|
const count = appState.notes.selectedNotesCount;
|
|
|
|
return (
|
|
<div className="flex flex-col h-full items-center">
|
|
<div className="flex items-center justify-between p-4 w-full">
|
|
<h1 className="sk-h1 font-bold m-0">{count} selected notes</h1>
|
|
<div className="flex">
|
|
<div className="mr-3">
|
|
<PinNoteButton appState={appState} />
|
|
</div>
|
|
<NotesOptionsPanel application={application} appState={appState} />
|
|
</div>
|
|
</div>
|
|
<div className="flex-grow flex flex-col justify-center items-center w-full max-w-md">
|
|
<NotesIcon className="block" />
|
|
<h2 className="text-lg m-0 text-center mt-4">
|
|
{count} selected notes
|
|
</h2>
|
|
<p className="text-sm mt-2 text-center max-w-60">
|
|
Actions will be performed on all selected notes.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
);
|