on 4b0ca21 help sign in
bridge/src/views/Bitcoin/Bitcoin.js
44 lines 1.1 kB history raw
1import React, { useCallback } from 'react';
2import { Grid } from 'indigo-react';
4import { useLocalRouter } from 'lib/LocalRouter';
6import View from 'components/View';
7import { ForwardButton } from 'components/Buttons';
9export default function Bitcoin() {
10 const { pop, push, names } = useLocalRouter();
12 const goXpub = useCallback(() => push(names.BITCOIN_XPUB), [push, names]);
13 const goSignTransaction = useCallback(
14 () => push(names.BITCOIN_SIGN_TRANSACTION),
15 [push, names]
16 );
18 return (
19 <View pop={pop} inset>
20 <Grid.Item full className="mb4 f5">
21 Bitcoin
22 </Grid.Item>
23 <Grid.Divider />
24 <Grid className="pt2">
25 <Grid.Item
26 full
27 as={ForwardButton}
28 detail="Xpub for Landscape wallet"
29 onClick={goXpub}>
30 Xpub
31 </Grid.Item>
32 <Grid.Divider />
33 <Grid.Item
34 full
35 as={ForwardButton}
36 className="mt1"
37 detail="Sign transaction from Landscape"
38 onClick={goSignTransaction}>
39 Sign Transaction
40 </Grid.Item>
41 </Grid>
42 </View>
43 );