1import React from 'react';
2import { chunk } from 'lodash';
4import { usePointCursor } from '../store/pointCursor';
6import { Row } from './Base';
7import RenderedPoint from './RenderedPoint';
9const PointList = function(props) {
10 const { setPointCursor } = usePointCursor();
11 const { routeHandler, points, loading } = props;
12 const chunks = chunk(points, 3);
14 return points.length === 0 ? (
15 <p>{loading ? 'Loading...' : 'No points to display'}</p>
17 chunks.map((chunk, idx) => (
18 <Row key={`render-row-${idx}`}>
22 setPointCursor={setPointCursor}
23 routeHandler={routeHandler}
32export 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