grid: show disabled screen during upgrade

This commit is contained in:
Liam Fitzgerald 2021-11-12 18:19:44 -05:00
parent 0a2076d0b2
commit 41bb5ec2b3

View File

@ -12,6 +12,7 @@ import useKilnState, { useVat } from '../../state/kiln';
import { NotificationButton } from './NotificationButton';
import { disableDefault } from '../../state/util';
import { Vat } from '../../../../npm/api/dist';
import {useHistory} from 'react-router-dom';
export const RuntimeLagNotification = () => (
<section
@ -43,6 +44,7 @@ function vatIsBlocked(newKelvin: number, vat: Vat) {
export const BaseBlockedNotification = () => {
const base = useVat('base');
const { push } = useHistory();
// TODO: assert weft.name === 'zuse'??
const newKelvin = base?.arak?.rail?.next?.[0]?.weft?.kelvin || 420;
const charges = useCharges();
@ -58,6 +60,7 @@ export const BaseBlockedNotification = () => {
const handleArchiveApps = useCallback(async () => {
api.poke(kilnBump(true));
push('/leap/upgrading');
}, []);
return (