@@ -2,6 +2,7 @@ import { Just, Nothing } from 'folktale/maybe';
22import React, { useCallback, useState, useEffect } from 'react';
33import * as azimuth from 'azimuth-js';
44import * as ob from 'urbit-ob';
5+import { Input } from 'indigo-react';
56
67import View from 'components/View';
78import {
@@ -11,13 +12,13 @@ import {
1112} from 'components/Inputs';
1213import { ForwardButton } from 'components/Buttons';
1314
14−import * as need from 'lib/need';
15−import { WALLET_TYPES, urbitWalletFromTicket } from 'lib/wallet';
16−
1715import { useNetwork } from 'store/network';
1816import { useWallet } from 'store/wallet';
1917import { usePointCursor } from 'store/pointCursor';
20−import { Input } from 'indigo-react';
18+
19+import * as need from 'lib/need';
20+import { WALLET_TYPES, urbitWalletFromTicket } from 'lib/wallet';
21+import useWalletType from 'lib/useWalletType';
2122
2223//TODO should be part of InputWithStatus component
2324const INPUT_STATUS = {
@@ -27,9 +28,10 @@ const INPUT_STATUS = {
2728};
2829
2930export default function Ticket({ advanced, loginCompleted }) {
31+ useWalletType(WALLET_TYPES.TICKET);
3032 // globals
3133 const { contracts } = useNetwork();
32− const { wallet, setWalletType, setUrbitWallet } = useWallet();
34+ const { wallet, setUrbitWallet } = useWallet();
3335 const { setPointCursor } = usePointCursor();
3436
3537 // inputs
@@ -100,7 +102,6 @@ export default function Ticket({ advanced, loginCompleted }) {
100102 };
101103
102104 const doContinue = () => {
103− setWalletType(WALLET_TYPES.TICKET);
104105 setPointCursor(Just(ob.patp2dec(pointName)));
105106 loginCompleted();
106107 };