1import React from 'react';
2import { Grid } from 'indigo-react';
4import { useHistory } from 'store/history';
6import useCurrentPointName from 'lib/useCurrentPointName';
7import useRouter from 'lib/useRouter';
8import { LocalRouterProvider } from 'lib/LocalRouter';
10import View from 'components/View';
11import Crumbs from 'components/Crumbs';
13import UrbitOSHome from './UrbitOS/Home';
17 CHANGE_SPONSOR: 'CHANGE_SPONSOR',
18 NETWORKING_KEYS: 'NETWORKING_KEYS',
22 [NAMES.HOME]: UrbitOSHome,
23 [NAMES.CHANGE_SPONSOR]: UrbitOSHome,
24 [NAMES.NETWORKING_KEYS]: UrbitOSHome,
27export default function UrbitOS() {
28 const history = useHistory();
29 const name = useCurrentPointName();
31 const { Route, ...router } = useRouter({
34 initialRoutes: [{ key: NAMES.HOME }],
38 <View pop={router.pop} inset>
39 <LocalRouterProvider value={router}>
40 <Grid className="mb4">
45 { text: name, 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