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 CopiableAddress from 'components/CopiableAddress';
15import Active from 'views/Release/Active';
16import Locked from 'views/Release/Locked';
17import Transfer from 'views/Release/Transfer';
18import NavHeader from 'components/NavHeader';
27 [NAMES.ACTIVE]: Active,
28 [NAMES.LOCKED]: Locked,
29 [NAMES.TRANSFER]: Transfer,
32 { text: 'Active', value: NAMES.ACTIVE },
33 { text: 'Locked', value: NAMES.LOCKED },
34 { text: 'Transfer', value: NAMES.TRANSFER },
36export default function ReleaseView() {
37 const { pop, push, names } = useHistory();
38 const { wallet } = useWallet();
40 const { setPointCursor } = usePointCursor();
42 const goPoint = useCallback(
44 setPointCursor(Just(point));
48 [push, names, setPointCursor]
51 const [currentTab, setCurrentTab] = useState(NAMES.ACTIVE);
53 const goActive = useCallback(() => {
54 setCurrentTab(NAMES.ACTIVE);
57 const address = need.addressFromWallet(wallet);
60 <View pop={pop} inset>
63 className="f6 mono gray4 us-none pointer"
69 <Grid.Item full as={H1}></Grid.Item>
78 currentTab={currentTab}
79 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