@@ -14,13 +14,13 @@ import useIsEclipticOwner from 'lib/useIsEclipticOwner';
14import { useSyncKnownPoints } from 'lib/useSyncPoints';
14import { useSyncKnownPoints } from 'lib/useSyncPoints';
15import useRejectedIncomingPointTransfers from 'lib/useRejectedIncomingPointTransfers';
15import useRejectedIncomingPointTransfers from 'lib/useRejectedIncomingPointTransfers';
16import pluralize from 'lib/pluralize';
16import pluralize from 'lib/pluralize';
17−import useCopiable from 'lib/useCopiable';
19import View from 'components/View';
18import View from 'components/View';
20import Blinky from 'components/Blinky';
19import Blinky from 'components/Blinky';
21import Passport from 'components/Passport';
20import Passport from 'components/Passport';
22import Footer from 'components/Footer';
21import Footer from 'components/Footer';
23import { ForwardButton } from 'components/Buttons';
22import { ForwardButton } from 'components/Buttons';
23+import CopiableAddress from 'components/CopiableAddress';
25const maybeGetResult = (obj, key, defaultValue) =>
25const maybeGetResult = (obj, key, defaultValue) =>
26 obj.matchWith({
26 obj.matchWith({
@@ -163,7 +163,6 @@ export default function Points() {
165 const address = need.addressFromWallet(wallet);
165 const address = need.addressFromWallet(wallet);
166− const [doCopy, didCopy] = useCopiable(address);
168 const loading = Nothing.hasInstance(controlledPoints);
167 const loading = Nothing.hasInstance(controlledPoints);
@@ -210,12 +209,10 @@ export default function Points() {
211 <View pop={pop} inset>
210 <View pop={pop} inset>
216− className="f6 mono gray4 mb4 us-none clickable"
212+ <Grid.Item full as={H1} className="f6 mono gray4 mb4 us-none pointer">
217− onClick={doCopy}>
213+ <CopiableAddress text={address}>
218− {`${abbreviateAddress(address)}${didCopy ? ' (copied!)' : ''}`}
214+ {abbreviateAddress(address)}
219 </Grid.Item>
216 </Grid.Item>
221 {loading && (
218 {loading && (