mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
grid: show disabled screen during upgrade
This commit is contained in:
parent
0a2076d0b2
commit
41bb5ec2b3
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user