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';
25 [NAMES.ACTIVE]: Active,
26 [NAMES.LOCKED]: Locked,
29 { text: 'Active', value: NAMES.ACTIVE },
30 { text: 'Locked', value: NAMES.LOCKED },
32export default function ReleaseView() {
33 const { pop, push, names } = useHistory();
34 const { wallet } = useWallet();
36 const { setPointCursor } = usePointCursor();
38 const goPoint = useCallback(
40 setPointCursor(Just(point));
44 [push, names, setPointCursor]
47 const [currentTab, setCurrentTab] = useState(NAMES.ACTIVE);
49 const goActive = useCallback(() => {
50 setCurrentTab(NAMES.ACTIVE);
53 const address = need.addressFromWallet(wallet);
56 <View pop={pop} inset>
58 <Grid.Item full as={Crumbs} />
59 <Grid.Item full as={H1} className="f6 mono gray4 us-none pointer">
60 <CopiableAddress text={address}>{address}</CopiableAddress>
70 currentTab={currentTab}
71 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