1import React from 'react';
2import { Just } from 'folktale/maybe';
4import { useHistory } from 'store/history';
5import { usePointCursor } from 'store/pointCursor';
6import Point from 'lib/types/Point';
8import { Grid, Flex } from 'indigo-react';
9import Passport from 'components/Passport';
10import PermissionIndicator from './PermissionIndicator';
12interface PointListProps {
15 actions?: (point: Point, i: number) => React.Component;
20const PointList: React.FC<PointListProps> = function({
28 const { setPointCursor }: any = usePointCursor();
29 const { push, names }: any = useHistory();
32 <Grid asFlex gap={4} className={`${className} flex-row flex-wrap`}>
33 {points.map((point, i) => (
36 className={`fourth-${(i % 4) + 1}-md fourth-${(i % 4) + 1}-lg`}>
37 <Flex col className="rel">
40 processing={processing}
46 setPointCursor(Just(point.value));
53 <Flex.Item className="mt2">{actions(point, i)}</Flex.Item>
56 <PermissionIndicator permission={point.permissionLevel} />
65export default PointList;
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