mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
garden: update docket, jam
This commit is contained in:
parent
354f146cee
commit
452d6cab74
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:5f70b681979a66f361feecc4e8b44022a5e71b56117674f6ed4cb98b0ccc9cfb
|
oid sha256:88b7da8f0a0b7b43cd2f85c3f56e3f4a1c2ce65dfed238fb62d7255df3e74137
|
||||||
size 376404
|
size 376418
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
:~ title+'System'
|
:~ title+'System'
|
||||||
info+'An app launcher for Urbit.'
|
info+'An app launcher for Urbit.'
|
||||||
color+0xee.5432
|
color+0xee.5432
|
||||||
glob-http+['https://bootstrap.urbit.org/glob-0v7.10g8o.ctf38.5ogmr.n2n6i.1vdlr.glob' 0v7.10g8o.ctf38.5ogmr.n2n6i.1vdlr]
|
glob-http+['https://bootstrap.urbit.org/glob-0v7.i9r9o.4ld55.ntq2q.ug4dn.pi4oh.glob' 0v7.i9r9o.4ld55.ntq2q.ug4dn.pi4oh]
|
||||||
::glob-ames+~zod^0v0
|
::glob-ames+~zod^0v0
|
||||||
base+'grid'
|
base+'grid'
|
||||||
version+[0 0 1]
|
version+[0 0 1]
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import cn from 'classnames';
|
import cn from 'classnames';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { HarkLid, Vats } from '@urbit/api';
|
import { HarkLid, Vats, getVatPublisher } from '@urbit/api';
|
||||||
import { Button } from '../../components/Button';
|
import { Button } from '../../components/Button';
|
||||||
import { useCurrentTheme, useProtocolHandling } from '../../state/local';
|
import { useCurrentTheme, useProtocolHandling } from '../../state/local';
|
||||||
import { getDarkColor } from '../../state/util';
|
import { getDarkColor } from '../../state/util';
|
||||||
import useKilnState from '../../state/kiln';
|
import useKilnState from '../../state/kiln';
|
||||||
import {getVatPublisher} from '../../../../npm/api/hood';
|
|
||||||
import {useHarkStore} from '../../state/hark';
|
import {useHarkStore} from '../../state/hark';
|
||||||
|
|
||||||
const getCards = (vats: Vats, protocol: boolean): OnboardingCardProps[] => {
|
const getCards = (vats: Vats, protocol: boolean): OnboardingCardProps[] => {
|
||||||
|
@ -110,9 +110,9 @@ export function getBlockers(vats: Vats): string[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getVatPublisher(vat: Vat): string | undefined {
|
export function getVatPublisher(vat: Vat): string | undefined {
|
||||||
if ('rail' in vat.arak) {
|
if (vat.arak.rail) {
|
||||||
const { rail } = vat.arak;
|
const { rail } = vat.arak;
|
||||||
return (rail.publisher || rail.ship);
|
return (rail?.publisher || rail?.ship || undefined);
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user