feat: multiple selected notes panel

This commit is contained in:
Baptiste Grob
2021-04-08 11:30:56 +02:00
parent 0f53361689
commit abfc588368
36 changed files with 542 additions and 128 deletions

View File

@@ -1,13 +1,12 @@
import { toDirective, useAutorunValue } from './utils';
import Close from '../../icons/ic_close.svg';
import { toDirective } from './utils';
import Close from '../../icons/ic-close.svg';
import { AppState } from '@/ui_models/app_state';
import { observer } from 'mobx-react-lite';
type Props = { appState: AppState };
function NoAccountWarning({ appState }: Props) {
const canShow = useAutorunValue(() => appState.noAccountWarning.show, [
appState,
]);
const NoAccountWarning = observer(({ appState }: Props) => {
const canShow = appState.noAccountWarning.show;
if (!canShow) {
return null;
}
@@ -39,6 +38,6 @@ function NoAccountWarning({ appState }: Props) {
</button>
</div>
);
}
});
export const NoAccountWarningDirective = toDirective<Props>(NoAccountWarning);