grid: bump desk from ui

This commit is contained in:
Liam Fitzgerald 2021-09-07 14:47:49 +10:00
parent 26c36ac588
commit 56893092e1

View File

@ -1,6 +1,6 @@
import { pick } from 'lodash-es';
import React, { useCallback } from 'react';
import { kilnSuspend } from '@urbit/api/hood';
import { kilnBump } from '@urbit/api/hood';
import { AppList } from '../../components/AppList';
import { Button } from '../../components/Button';
import { Dialog, DialogClose, DialogContent, DialogTrigger } from '../../components/Dialog';
@ -49,9 +49,8 @@ export const BaseBlockedNotification = ({ notification }: BaseBlockedNotificatio
const handlePauseOTAs = useCallback(() => {}, []);
const handleArchiveApps = useCallback(async () => {
await Promise.all(desks.map((d) => api.poke(kilnSuspend(d))));
// TODO: retrigger OTA?
}, [desks]);
api.poke(kilnBump(true));
}, []);
return (
<section