1import React, { useCallback } from 'react';
2import * as need from 'lib/need';
3import { Grid } from 'indigo-react';
5import { usePointCursor } from 'store/pointCursor';
6// import { usePointCache } from 'store/pointCache';
8import View from 'components/View';
9import Passport from 'components/Passport';
10import { ForwardButton } from 'components/Buttons';
12import useInvites from 'lib/useInvites';
13import useSyncPoint from 'lib/useSyncPoint';
14import { ROUTE_NAMES } from 'lib/routeNames';
16import { useHistory } from 'store/history';
17import FooterButton from 'components/FooterButton';
19export default function Point() {
20 const history = useHistory();
21 const { pointCursor } = usePointCursor();
22 // const { pointCache } = usePointCache();
24 const point = need.pointCursor(pointCursor);
26 // fetch the invites for the current cursor
27 const { availableInvites } = useInvites(point);
29 const goInvite = useCallback(() => history.push(ROUTE_NAMES.INVITE), [
33 // sync the current cursor
36 // const pointDetails = need.fromPointCache(pointCache, point);
40 <Passport point={point} />
41 <Grid className="pt2">
43 <ForwardButton disabled>Admin</ForwardButton>
47 <ForwardButton detail="Boot your computer" disabled>
53 <FooterButton onClick={goInvite}>
55 {availableInvites.matchWith({
57 Just: p => <sup className="ml1">{p.value}</sup>,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list