@@ -12,7 +12,7 @@ import Greeting from 'components/Greeting';
12import Passport from 'components/Passport';
12import Passport from 'components/Passport';
13import { ForwardButton, BootUrbitOSButton } from 'components/Buttons';
13import { ForwardButton, BootUrbitOSButton } from 'components/Buttons';
14import CopyButton from 'components/CopyButton';
14import CopyButton from 'components/CopyButton';
15−import { matchBlinky } from 'components/Blinky';
15+import Blinky, { matchBlinky } from 'components/Blinky';
16import DownloadSigilButton from 'components/DownloadSigilButton';
16import DownloadSigilButton from 'components/DownloadSigilButton';
17import BarGraph from 'components/BarGraph';
17import BarGraph from 'components/BarGraph';
18import Chip from 'components/Chip';
18import Chip from 'components/Chip';
@@ -63,6 +63,8 @@ export default function Point() {
63 const _totalInvites =
63 const _totalInvites =
64 sentInvites.getOrElse(0) + availableInvites.getOrElse(0);
64 sentInvites.getOrElse(0) + availableInvites.getOrElse(0);
65 const _pendingInvites = pendingPoints.getOrElse([]).length;
65 const _pendingInvites = pendingPoints.getOrElse([]).length;
67+ const loadedInvites = Just.hasInstance(availableInvites);
67 // availableInvites.getOrElse(0) === 0
69 // availableInvites.getOrElse(0) === 0
@@ -72,7 +74,7 @@ export default function Point() {
73 const goInvite = useCallback(() => push(names.INVITE), [push, names]);
75 const goInvite = useCallback(() => push(names.INVITE), [push, names]);
75− const goParty = useCallback(() => push(names.PARTY), [push, names]);
77+ const goCohort = useCallback(() => push(names.INVITE_COHORT), [push, names]);
77 const goPartiesSetPoolSize = useCallback(
79 const goPartiesSetPoolSize = useCallback(
78 () => push(names.PARTY_SET_POOL_SIZE),
80 () => push(names.PARTY_SET_POOL_SIZE),
@@ -89,39 +91,22 @@ export default function Point() {
89 const [showInviteForm, setShowInviteForm] = useState(false);
91 const [showInviteForm, setShowInviteForm] = useState(false);
91 const inviteButton = (() => {
93 const inviteButton = (() => {
92− switch (azimuth.getPointSize(point)) {
94+ if (azimuth.getPointSize(point) === azimuth.PointSize.Star) {
93− case azimuth.PointSize.Planet:
94− const availableInvitesText = matchBlinky(availableInvites);
100− disabled={!isActiveOwner}
102− Invite <sup>{availableInvitesText}</sup>
108− case azimuth.PointSize.Star:
109− return (
95+ return (
111− <Grid.Item
97+ <Grid.Item
113− as={ForwardButton}
99+ as={ForwardButton}
114− disabled={!isActiveOwner}
100+ disabled={!isActiveOwner}
115− onClick={goPartiesSetPoolSize}>
101+ onClick={goPartiesSetPoolSize}>
116− Manage Invite Pools
102+ Manage Invite Pools
117− </Grid.Item>
103+ </Grid.Item>
118− <Grid.Divider />
104+ <Grid.Divider />
127 const senateButton = (() => {
112 const senateButton = (() => {
@@ -167,7 +152,7 @@ export default function Point() {
167 className={cn('t-right underline', {
152 className={cn('t-right underline', {
168 gray4: sentInvites.getOrElse(0) === 0,
153 gray4: sentInvites.getOrElse(0) === 0,
170− onClick={goParty}
155+ onClick={goCohort}
171 cols={[11, 13]}>
156 cols={[11, 13]}>
173 </Grid.Item>
158 </Grid.Item>
@@ -223,6 +208,11 @@ export default function Point() {
223 {showInviteForm && <Inviter />}
208 {showInviteForm && <Inviter />}
211+ {!loadedInvites && isPlanet && (
212+ <Grid.Item className="mv2" full>
213+ Invite Group <Blinky />
227 <Grid className="pt2">
217 <Grid className="pt2">
228 {inviteButton}
218 {inviteButton}