1import React, { useState, useCallback } from 'react';
2import { H1, Grid } from 'indigo-react';
3import { Just } from 'folktale/maybe';
5import * as need from 'lib/need';
7import { useHistory } from 'store/history';
8import { useWallet } from 'store/wallet';
9import { usePointCursor } from 'store/pointCursor';
11import View from 'components/View';
12import Tabs from 'components/Tabs';
13import Crumbs from 'components/Crumbs';
14import CopiableAddress from 'components/CopiableAddress';
16import Active from 'views/Release/Active';
17import Locked from 'views/Release/Locked';
18import Transfer from 'views/Release/Transfer';
19import NavHeader from 'components/NavHeader';
28 [NAMES.ACTIVE]: Active,
29 [NAMES.LOCKED]: Locked,
30 [NAMES.TRANSFER]: Transfer,
33 { text: 'Active', value: NAMES.ACTIVE },
34 { text: 'Locked', value: NAMES.LOCKED },
35 { text: 'Transfer', value: NAMES.TRANSFER },
37export default function ReleaseView() {
38 const { pop, push, names } = useHistory();
39 const { wallet } = useWallet();
41 const { setPointCursor } = usePointCursor();
43 const goPoint = useCallback(
45 setPointCursor(Just(point));
49 [push, names, setPointCursor]
52 const [currentTab, setCurrentTab] = useState(NAMES.ACTIVE);
54 const goActive = useCallback(() => {
55 setCurrentTab(NAMES.ACTIVE);
58 const address = need.addressFromWallet(wallet);
61 <View pop={pop} inset>
64 className="f6 mono gray4 us-none pointer"
70 <Grid.Item full as={H1}></Grid.Item>
79 currentTab={currentTab}
80 onTabChange={setCurrentTab}
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