on master help sign in
Import folktale/maybe unqualified in Bridge.js
2df360eFang
src/bridge/Bridge.js+13−13
@@ -1,4 +1,4 @@
1−import Maybe from 'folktale/maybe'
1+import { Just, Nothing } from 'folktale/maybe'
2import * as lodash from 'lodash'
2import * as lodash from 'lodash'
3import * as azimuth from 'azimuth-js'
3import * as azimuth from 'azimuth-js'
4import { Stack } from 'immutable'
4import { Stack } from 'immutable'
@@ -66,21 +66,21 @@ class Bridge extends React.Component {
66 routeData: {},
66 routeData: {},
67 // network
67 // network
68 networkType: networkType,
68 networkType: networkType,
69− web3: Maybe.Just(web3),
69+ web3: Just(web3),
70− contracts: Maybe.Just(contracts),
70+ contracts: Just(contracts),
71 // wallet
71 // wallet
72 walletType: WALLET_NAMES.MNEMONIC,
72 walletType: WALLET_NAMES.MNEMONIC,
73− wallet: Maybe.Nothing(),
73+ wallet: Nothing(),
74 walletHdPath: DEFAULT_HD_PATH,
74 walletHdPath: DEFAULT_HD_PATH,
75 // urbit wallet-related
75 // urbit wallet-related
76− urbitWallet: Maybe.Nothing(),
76+ urbitWallet: Nothing(),
77− authMnemonic: Maybe.Nothing(),
77+ authMnemonic: Nothing(),
78 networkSeedCache: null,
78 networkSeedCache: null,
79 // point
79 // point
80− pointCursor: Maybe.Nothing(),
80+ pointCursor: Nothing(),
81 pointCache: {},
81 pointCache: {},
82 // txn
82 // txn
83− txnHashCursor: Maybe.Nothing()
83+ txnHashCursor: Nothing()
84 }
84 }
85
85
86 this.pushRoute = this.pushRoute.bind(this)
86 this.pushRoute = this.pushRoute.bind(this)
@@ -133,13 +133,13 @@ class Bridge extends React.Component {
133 // ROUTE_NAMES.LANDING
133 // ROUTE_NAMES.LANDING
134 // ]),
134 // ]),
135 // networkType: NETWORK_NAMES.LOCAL,
135 // networkType: NETWORK_NAMES.LOCAL,
136− // pointCursor: Maybe.Just(0),
136+ // pointCursor: Just(0),
137− // web3: Maybe.Just(web3),
137+ // web3: Just(web3),
138− // contracts: Maybe.Just(contracts),
138+ // contracts: Just(contracts),
139 // walletType: WALLET_NAMES.MNEMONIC,
139 // walletType: WALLET_NAMES.MNEMONIC,
140 // wallet: walletFromMnemonic(mnemonic, hdpath),
140 // wallet: walletFromMnemonic(mnemonic, hdpath),
141− // urbitWallet: Maybe.Nothing(),
141+ // urbitWallet: Nothing(),
142− // authMnemonic: Maybe.Just('benefit crew supreme gesture quantum web media hazard theory mercy wing kitten')
142+ // authMnemonic: Just('benefit crew supreme gesture quantum web media hazard theory mercy wing kitten')
143 // })
143 // })
144 // }
144 // }
145}
145}