on master help sign in
qol: rename Confirm to Reveal
be3db25tomholford
src/views/Activate/ActivateMasterKey.tsx+4−4
@@ -17,17 +17,17 @@ import PassportTransfer from './PassportTransfer';
17import { walletFromMnemonic } from 'lib/wallet';
17import { walletFromMnemonic } from 'lib/wallet';
18import { DEFAULT_HD_PATH } from 'lib/constants';
18import { DEFAULT_HD_PATH } from 'lib/constants';
19import { publicToAddress } from 'lib/utils/address';
19import { publicToAddress } from 'lib/utils/address';
20−import MasterKeyConfirm from './MasterKeyConfirm';
20+import MasterKeyReveal from './MasterKeyReveal';
21
21
22const NAMES = {
22const NAMES = {
23− CONFIRM: 'CONFIRM',
23+ REVEAL: 'REVEAL',
24 DOWNLOAD: 'DOWNLOAD',
24 DOWNLOAD: 'DOWNLOAD',
25 VERIFY: 'VERIFY',
25 VERIFY: 'VERIFY',
26 TRANSFER: 'TRANSFER',
26 TRANSFER: 'TRANSFER',
27};
27};
28
28
29const VIEWS = {
29const VIEWS = {
30− [NAMES.CONFIRM]: MasterKeyConfirm,
30+ [NAMES.REVEAL]: MasterKeyReveal,
31 [NAMES.DOWNLOAD]: PassportDownload,
31 [NAMES.DOWNLOAD]: PassportDownload,
32 [NAMES.VERIFY]: PassportVerify,
32 [NAMES.VERIFY]: PassportVerify,
33 [NAMES.TRANSFER]: PassportTransfer,
33 [NAMES.TRANSFER]: PassportTransfer,
@@ -40,7 +40,7 @@ export default function ActivatePassport() {
40 const { Route, ...router } = useRouter({
40 const { Route, ...router } = useRouter({
41 names: NAMES,
41 names: NAMES,
42 views: VIEWS,
42 views: VIEWS,
43− initialRoutes: [{ key: NAMES.CONFIRM }],
43+ initialRoutes: [{ key: NAMES.REVEAL }],
44 });
44 });
45
45
46 const gap = useBreakpoints([4, 4, 7]);
46 const gap = useBreakpoints([4, 4, 7]);
src/views/Activate/MasterKeyConfirm.tsx → src/views/Activate/MasterKeyReveal.tsxrenamed+4−3
@@ -8,7 +8,7 @@ import ActivateParagraph from './ActivateParagraph';
8import { ActivateSteps } from './ActivateSteps';
8import { ActivateSteps } from './ActivateSteps';
9import { useActivateFlow } from './ActivateFlow';
9import { useActivateFlow } from './ActivateFlow';
10
10
11−const MasterKeyConfirm = () => {
11+const MasterKeyReveal = () => {
12 const { isFaded, setIsFaded } = useActivateFlow();
12 const { isFaded, setIsFaded } = useActivateFlow();
13
13
14 const header = useMemo(() => {
14 const header = useMemo(() => {
@@ -55,8 +55,9 @@ const MasterKeyConfirm = () => {
55 }, [isFaded]);
55 }, [isFaded]);
56
56
57 useEffect(() => {
57 useEffect(() => {
58− // Fade in content once
58+ // Fade in content
59 setIsFaded(true);
59 setIsFaded(true);
60+ // eslint-disable-next-line react-hooks/exhaustive-deps
60 }, []);
61 }, []);
61
62
62 return (
63 return (
@@ -89,4 +90,4 @@ const MasterKeyConfirm = () => {
89 );
90 );
90};
91};
91
92
92−export default MasterKeyConfirm;
93+export default MasterKeyReveal;