diff --git a/pkg/grid/src/components/DocketHeader.tsx b/pkg/grid/src/components/DocketHeader.tsx index 9401891e2..f8db3f7e6 100644 --- a/pkg/grid/src/components/DocketHeader.tsx +++ b/pkg/grid/src/components/DocketHeader.tsx @@ -1,21 +1,22 @@ import React from 'react'; -import { Docket } from '@urbit/api/docket'; import { DocketImage } from './DocketImage'; +import { getAppName } from '../state/util'; +import { DocketWithDesk } from '../state/docket'; interface DocketHeaderProps { - docket: Docket; + docket: DocketWithDesk; children?: React.ReactNode; } export function DocketHeader(props: DocketHeaderProps) { const { docket, children } = props; - const { info, title, image, color } = docket; + const { info, image, color } = docket; return (
-

{title}

+

{getAppName(docket)}

{info &&

{info}

}
{children} diff --git a/pkg/grid/src/env.d.ts b/pkg/grid/src/env.d.ts index ebbd72c2b..2fda24a0d 100644 --- a/pkg/grid/src/env.d.ts +++ b/pkg/grid/src/env.d.ts @@ -1,4 +1,4 @@ -interface ImportMetaEnv extends Readonly> { +interface ImportMetaEnv extends Readonly> { readonly VITE_LAST_WIPE: string; readonly VITE_STORAGE_VERSION: string; } diff --git a/pkg/grid/src/tiles/SuspendApp.tsx b/pkg/grid/src/tiles/SuspendApp.tsx index 17ab6259b..c8c3e4732 100644 --- a/pkg/grid/src/tiles/SuspendApp.tsx +++ b/pkg/grid/src/tiles/SuspendApp.tsx @@ -4,6 +4,7 @@ import { Button } from '../components/Button'; import { Dialog, DialogClose, DialogContent } from '../components/Dialog'; import { useRecentsStore } from '../nav/search/Home'; import useDocketState, { useCharges } from '../state/docket'; +import { getAppName } from '../state/util'; export const SuspendApp = () => { const history = useHistory(); @@ -34,7 +35,7 @@ export const SuspendApp = () => { Cancel - Suspend “{getAppName(docket)}” + Suspend “{getAppName(charge)}”