fix: hide account warning after login + improve key storage wording

This commit is contained in:
Baptiste Grob
2021-02-03 11:53:52 +01:00
parent 117d414d6b
commit fab9ca2ad2
8 changed files with 156 additions and 71 deletions

View File

@@ -1,17 +1,10 @@
import { WebApplication } from '@/ui_models/application';
import { toDirective, useAutorunValue } from './utils';
import Close from '../../icons/ic_close.svg';
import { AppState } from '@/ui_models/app_state';
function NoAccountWarning({
application,
appState,
}: {
application: WebApplication;
appState: AppState;
}) {
function NoAccountWarning({ appState }: { appState: AppState }) {
const canShow = useAutorunValue(() => appState.noAccountWarning.show);
if (!canShow || application.hasAccount()) {
if (!canShow) {
return null;
}
return (