1import React from 'react';
2import { Grid } from 'indigo-react';
4import View from 'components/View';
6import { useHistory } from 'store/history';
7import Crumbs from 'components/Crumbs';
8import useCurrentPointName from 'lib/useCurrentPointName';
9import useRouter from 'lib/useRouter';
10import AdminHome from './Admin/AdminHome';
11import { LocalRouterProvider } from 'lib/LocalRouter';
18 [NAMES.HOME]: AdminHome,
21export default function Admin() {
22 const history = useHistory();
23 const name = useCurrentPointName();
25 const { Route, ...router } = useRouter({
28 initialRoutes: [{ key: NAMES.HOME }],
32 <LocalRouterProvider value={router}>
34 <Grid className="mb4">
40 action: () => history.pop(),
51 </LocalRouterProvider>
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