@stokr/components-library 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -141,7 +141,7 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
141
141
|
state: ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
142
142
|
//link: '', //`${platformURL}/register-ethereum`,
|
|
143
143
|
disabled: true,
|
|
144
|
-
tooltip: '
|
|
144
|
+
tooltip: 'Registering your ethereum wallet is currently disabled until we have a new offer using the ethereum network.'
|
|
145
145
|
}]);
|
|
146
146
|
setoptionalTasks([{
|
|
147
147
|
title: 'Tax ID',
|
|
@@ -183,20 +183,26 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
183
183
|
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
184
184
|
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
185
185
|
disabled: true,
|
|
186
|
-
tooltip: '
|
|
186
|
+
tooltip: 'Registering your ethereum wallet is currently disabled until we have a new offer using the ethereum network.'
|
|
187
187
|
}]);
|
|
188
|
-
|
|
189
|
-
title: 'Invest in Euro',
|
|
190
|
-
message: getInvestInEuroChecklist(isFromAllowedCountry, user).message,
|
|
191
|
-
state: getInvestInEuroChecklist(isFromAllowedCountry, user).state,
|
|
192
|
-
link: isFromAllowedCountry && kyc_status && kyc_status !== 'Draft' && "".concat(platformURL, "/verify-identity")
|
|
193
|
-
}, {
|
|
188
|
+
var optionalTasks = [{
|
|
194
189
|
title: 'Tax ID',
|
|
195
190
|
message: !userData.taxId ? 'To invest in certain offerings, you need to provide your tax ID' : userData.taxId && 'You tax ID is submitted',
|
|
196
191
|
state: !userData.taxId ? _ToDoList.ToDoTaskState.SKIPPED : userData.taxId && _ToDoList.ToDoTaskState.APPROVED,
|
|
197
192
|
openModal: _ToDoList.ToDoModal.TAX_ID,
|
|
198
193
|
tooltip: "Some offers require you to provide your Tax ID before being able to invest.\n\nYour tax information will be disclosed to the Luxembourg tax authorities annually for tax compliance purposes required by the Common Reporting Standard implementation."
|
|
199
|
-
}]
|
|
194
|
+
}];
|
|
195
|
+
if (countryObj !== null && countryObj !== void 0 && countryObj.SEPA) {
|
|
196
|
+
//add an item at first place
|
|
197
|
+
//only if the user is from a SEPA country
|
|
198
|
+
optionalTasks.splice(0, 0, {
|
|
199
|
+
title: 'Invest in Euro',
|
|
200
|
+
message: getInvestInEuroChecklist(isFromAllowedCountry, user).message,
|
|
201
|
+
state: getInvestInEuroChecklist(isFromAllowedCountry, user).state,
|
|
202
|
+
link: isFromAllowedCountry && kyc_status && kyc_status !== 'Draft' && "".concat(platformURL, "/verify-identity")
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
setoptionalTasks(optionalTasks);
|
|
200
206
|
}
|
|
201
207
|
};
|
|
202
208
|
return /*#__PURE__*/_react.default.createElement(_ToDoList.default, _extends({}, props, {
|
|
@@ -158,10 +158,179 @@ var userDev = {
|
|
|
158
158
|
'la-boulangerie': true
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
+
var userStaging = {
|
|
162
|
+
_id: '5e3571e222143e0016516946',
|
|
163
|
+
name: '',
|
|
164
|
+
lastname: ' ',
|
|
165
|
+
user_type: 'investor',
|
|
166
|
+
email: 'lukas@stokr.io',
|
|
167
|
+
hashedPassword: '98701a2450ab7d365ba1b39a437db25ac8b658d1',
|
|
168
|
+
activate_token: '',
|
|
169
|
+
active: true,
|
|
170
|
+
company: null,
|
|
171
|
+
fa2: false,
|
|
172
|
+
entity_name: '',
|
|
173
|
+
username: 'lukas3567478hkg',
|
|
174
|
+
country: 'Canada',
|
|
175
|
+
kyc_status: 'Accepted',
|
|
176
|
+
KYCDocuments: {
|
|
177
|
+
libId: 'bec16caf-2967-4199-a160-fd3874ba5a6d',
|
|
178
|
+
fileId: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
179
|
+
id: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
180
|
+
contentType: 'application/pdf',
|
|
181
|
+
name: '2',
|
|
182
|
+
filename: '8f77bda4bb318ad2532853a5b22d43f31637148577350.pdf',
|
|
183
|
+
links: [{
|
|
184
|
+
type: 'Library',
|
|
185
|
+
id: 'bec16caf-2967-4199-a160-fd3874ba5a6d'
|
|
186
|
+
}],
|
|
187
|
+
docType: '1',
|
|
188
|
+
fileid: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
189
|
+
status: 'Pending',
|
|
190
|
+
dt: '2023-01-06T10:45:54.142Z'
|
|
191
|
+
},
|
|
192
|
+
investor_eth_addresses: [{
|
|
193
|
+
name: 'Test',
|
|
194
|
+
address: '0x6d78f66d27f6979be13347f5c1c95facc395dfea'
|
|
195
|
+
}, {
|
|
196
|
+
name: '6aa',
|
|
197
|
+
address: '0x6aa5a27132f2a828350e06fb20e04e7e5e205e9a'
|
|
198
|
+
}, {
|
|
199
|
+
name: '8908',
|
|
200
|
+
address: '0x3b5101257201b4a31a90c025eb57a41ea0ce46f4'
|
|
201
|
+
}, {
|
|
202
|
+
name: 'f7',
|
|
203
|
+
address: '0xf711a3529eb53a6375f10c0bbb4646081ffcdc48'
|
|
204
|
+
}, {
|
|
205
|
+
name: 'kghf',
|
|
206
|
+
address: '0x8f02dde046cdfecccf068a39a7c3844e49f5e33d'
|
|
207
|
+
}],
|
|
208
|
+
is_risk_questionnaire_finished: true,
|
|
209
|
+
lemonwayWallet: {
|
|
210
|
+
ID: '5e3571e222143e0016516946',
|
|
211
|
+
STATUS: '6',
|
|
212
|
+
poa_fileid: '42',
|
|
213
|
+
passport_fileid: '24',
|
|
214
|
+
dt: '2020-02-05T13:33:04.705Z'
|
|
215
|
+
},
|
|
216
|
+
liquid_network: {
|
|
217
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
218
|
+
dt: '2021-10-12T07:59:24.256Z',
|
|
219
|
+
id: null,
|
|
220
|
+
is_company: null,
|
|
221
|
+
name: null,
|
|
222
|
+
categories: null,
|
|
223
|
+
creator: null,
|
|
224
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ', 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ', 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ'],
|
|
225
|
+
'73491f31-80c0-4f81-90cf-45a0beb8a458': {
|
|
226
|
+
id: 510,
|
|
227
|
+
categories: [25],
|
|
228
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
229
|
+
is_company: false,
|
|
230
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
231
|
+
},
|
|
232
|
+
'f5197b40-2220-4d31-8752-16dc79cec9f2': {
|
|
233
|
+
id: 178,
|
|
234
|
+
categories: [null],
|
|
235
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ'],
|
|
236
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
237
|
+
creator: 33
|
|
238
|
+
},
|
|
239
|
+
'2812e39a-ad94-4368-9db4-9d98c1c00f38': {
|
|
240
|
+
id: 121,
|
|
241
|
+
categories: [3],
|
|
242
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
243
|
+
is_company: false,
|
|
244
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
245
|
+
},
|
|
246
|
+
'3fc1284a-e2fa-41a7-8a88-d6932e436120': {
|
|
247
|
+
id: 510,
|
|
248
|
+
categories: [44],
|
|
249
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
250
|
+
is_company: false,
|
|
251
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
252
|
+
},
|
|
253
|
+
'35c3c8ed-59a3-4a87-9612-b48236aeab3b': {
|
|
254
|
+
id: 1305,
|
|
255
|
+
categories: [24],
|
|
256
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
257
|
+
is_company: false,
|
|
258
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
notificationSent: false,
|
|
262
|
+
investor_algo_addresses: [{
|
|
263
|
+
name: '1234',
|
|
264
|
+
address: 'FNM3FMLCFU3YSX7RINUCJD6LU6XSCBARUS47RFZ47MFDLN7VTOJEMZF3AE',
|
|
265
|
+
whitelistedAssets: ['20918100', '97457378']
|
|
266
|
+
}, {
|
|
267
|
+
name: '12341234',
|
|
268
|
+
address: 'ZKPNVQ4B3LZ2H4YXJXHNCVALCOOQP6DFLBU5HW65S3M7RGV757P63K72K4'
|
|
269
|
+
}, {
|
|
270
|
+
name: 'Lukas Test',
|
|
271
|
+
address: '7K7WKUEUCE2AWDGQG45JVHUDKNHYKWMHII6C2ULV4PO4OR5WZP74J2NHJA',
|
|
272
|
+
whitelistedAssets: ['97457378']
|
|
273
|
+
}, {
|
|
274
|
+
name: 'Test Lukas',
|
|
275
|
+
address: 'WMQDAPWWVPZVCGOXCMUV6TZMOWYR24AY5FD6BUP6KXUOXHZ5JCK4ZWN2LM',
|
|
276
|
+
whitelistedAssets: ['92363258', '97457378']
|
|
277
|
+
}],
|
|
278
|
+
// countryObj: {
|
|
279
|
+
// _id: '63c6817057bd250006b111ab',
|
|
280
|
+
// name: 'Canada',
|
|
281
|
+
// ISO2: 'CA',
|
|
282
|
+
// ISO3: 'CAN',
|
|
283
|
+
// isAllowed: true,
|
|
284
|
+
// signUpWarning: true,
|
|
285
|
+
// 'blockstream-mining': true,
|
|
286
|
+
// },
|
|
287
|
+
wallets: [{
|
|
288
|
+
_id: '6446a691d4a3e282ab0986ea',
|
|
289
|
+
userId: '5e3571e222143e0016516946',
|
|
290
|
+
type: 'liquid',
|
|
291
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
292
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
293
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
294
|
+
isPrimary: true
|
|
295
|
+
}, {
|
|
296
|
+
_id: '6446a691d4a3e282ab0986eb',
|
|
297
|
+
userId: '5e3571e222143e0016516946',
|
|
298
|
+
type: 'liquid',
|
|
299
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
300
|
+
assetIds: ['2812e39a-ad94-4368-9db4-9d98c1c00f38'],
|
|
301
|
+
liquidAccount: 'infinite-fleet',
|
|
302
|
+
registered_user: 121,
|
|
303
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
304
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
305
|
+
isPrimary: true
|
|
306
|
+
}, {
|
|
307
|
+
_id: '6446a691d4a3e282ab0986ec',
|
|
308
|
+
userId: '5e3571e222143e0016516946',
|
|
309
|
+
type: 'liquid',
|
|
310
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
311
|
+
assetIds: ['73491f31-80c0-4f81-90cf-45a0beb8a458', 'f5197b40-2220-4d31-8752-16dc79cec9f2'],
|
|
312
|
+
liquidAccount: 'stokr',
|
|
313
|
+
registered_user: 510,
|
|
314
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
315
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
316
|
+
isPrimary: true
|
|
317
|
+
}, {
|
|
318
|
+
_id: '6446a691d4a3e282ab0986ed',
|
|
319
|
+
userId: '5e3571e222143e0016516946',
|
|
320
|
+
type: 'liquid',
|
|
321
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
322
|
+
assetIds: ['35c3c8ed-59a3-4a87-9612-b48236aeab3b'],
|
|
323
|
+
liquidAccount: 'blockstream',
|
|
324
|
+
registered_user: 1305,
|
|
325
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
326
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
327
|
+
isPrimary: true
|
|
328
|
+
}]
|
|
329
|
+
};
|
|
161
330
|
var UserChecklist_user_dev = Template.bind({});
|
|
162
331
|
exports.UserChecklist_user_dev = UserChecklist_user_dev;
|
|
163
332
|
UserChecklist_user_dev.args = {
|
|
164
|
-
user:
|
|
333
|
+
user: userStaging,
|
|
165
334
|
useRelativePath: true,
|
|
166
335
|
getTasksCount: function getTasksCount(data) {
|
|
167
336
|
// console.log(data)
|
|
@@ -347,7 +347,7 @@ var Header = function Header(_ref3) {
|
|
|
347
347
|
onClick: function onClick() {
|
|
348
348
|
return toggleMenu('main');
|
|
349
349
|
}
|
|
350
|
-
}, "Liquid
|
|
350
|
+
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
351
351
|
href: "".concat(newPlatformUrlForUserMenu, "/settings/algorand-address"),
|
|
352
352
|
onClick: function onClick() {
|
|
353
353
|
return toggleMenu('main');
|
|
@@ -187,7 +187,7 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
187
187
|
}
|
|
188
188
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
189
189
|
style: spanStyleForMenu
|
|
190
|
-
}, "Liquid
|
|
190
|
+
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
191
191
|
isActive: this.checkActive('algorand-address'),
|
|
192
192
|
onClick: function onClick() {
|
|
193
193
|
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
@@ -220,7 +220,7 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
220
220
|
}
|
|
221
221
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
222
222
|
style: spanStyleForMenu
|
|
223
|
-
}, "Liquid
|
|
223
|
+
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
224
224
|
scrollDown: true,
|
|
225
225
|
isActive: this.checkActive('algorand-address'),
|
|
226
226
|
onClick: function onClick() {
|