on master help sign in
Import folktale/maybe unqualified in Bridge.js
commit2df360ef895defabcb85d559033314411d5dc960 authorFang <git@fang.io> dateFri 5 Apr 2019, 01:12 (8 years ago) parent9e17a8f
1 file changed+13−13
src/bridge/Bridge.js+13−13
src/bridge/Bridge.js+13−13
@@ -1,4 +1,4 @@
1−import Maybe from 'folktale/maybe'
1+import { Just, Nothing } from 'folktale/maybe'
22import * as lodash from 'lodash'
33import * as azimuth from 'azimuth-js'
44import { Stack } from 'immutable'
@@ -66,21 +66,21 @@ class Bridge extends React.Component {
6666 routeData: {},
6767 // network
6868 networkType: networkType,
69− web3: Maybe.Just(web3),
70− contracts: Maybe.Just(contracts),
69+ web3: Just(web3),
70+ contracts: Just(contracts),
7171 // wallet
7272 walletType: WALLET_NAMES.MNEMONIC,
73− wallet: Maybe.Nothing(),
73+ wallet: Nothing(),
7474 walletHdPath: DEFAULT_HD_PATH,
7575 // urbit wallet-related
76− urbitWallet: Maybe.Nothing(),
77− authMnemonic: Maybe.Nothing(),
76+ urbitWallet: Nothing(),
77+ authMnemonic: Nothing(),
7878 networkSeedCache: null,
7979 // point
80− pointCursor: Maybe.Nothing(),
80+ pointCursor: Nothing(),
8181 pointCache: {},
8282 // txn
83− txnHashCursor: Maybe.Nothing()
83+ txnHashCursor: Nothing()
8484 }
8585
8686 this.pushRoute = this.pushRoute.bind(this)
@@ -133,13 +133,13 @@ class Bridge extends React.Component {
133133 // ROUTE_NAMES.LANDING
134134 // ]),
135135 // networkType: NETWORK_NAMES.LOCAL,
136− // pointCursor: Maybe.Just(0),
137− // web3: Maybe.Just(web3),
138− // contracts: Maybe.Just(contracts),
136+ // pointCursor: Just(0),
137+ // web3: Just(web3),
138+ // contracts: Just(contracts),
139139 // walletType: WALLET_NAMES.MNEMONIC,
140140 // wallet: walletFromMnemonic(mnemonic, hdpath),
141− // urbitWallet: Maybe.Nothing(),
142− // authMnemonic: Maybe.Just('benefit crew supreme gesture quantum web media hazard theory mercy wing kitten')
141+ // urbitWallet: Nothing(),
142+ // authMnemonic: Just('benefit crew supreme gesture quantum web media hazard theory mercy wing kitten')
143143 // })
144144 // }
145145}