@stokr/components-library 2.2.0 → 2.2.2
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.
- package/dist/components/Checklist/UserChecklist.js +1 -1
- package/dist/components/FAQ/FAQ.js +2 -2
- package/dist/components/FAQ/FAQ.stories.js +6 -0
- package/dist/components/Footer/mangopay.svg +20 -20
- package/dist/components/Icon/Icon.style.js +5 -1
- package/dist/index.js +11 -0
- package/dist/utils/analytics.js +60 -0
- package/package.json +2 -1
- package/dist/components/NotificationContext/NotificationContext.stories.js +0 -33
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +0 -477
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -66
- package/dist/components/TermsModal/PrivacyText.js +0 -359
- package/dist/components/context/Auth.js +0 -207
- package/dist/components/context/AuthContext.js +0 -334
- package/dist/utils/breakpoint.js +0 -19
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ProfileHeader = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactCollapse = require("react-collapse");
|
|
9
|
-
var _reactRouterDom = require("react-router-dom");
|
|
10
|
-
var _ProfileBox = _interopRequireDefault(require("../ProfileBox/ProfileBox"));
|
|
11
|
-
var _ProfileBadge = _interopRequireDefault(require("../ProfileBadge/ProfileBadge"));
|
|
12
|
-
var _ProfileStat = _interopRequireDefault(require("../ProfileStat/ProfileStat"));
|
|
13
|
-
var _ExpandButton = _interopRequireDefault(require("../ExpandButton/ExpandButton"));
|
|
14
|
-
var _NotificationItem = _interopRequireDefault(require("../NotificationItem/NotificationItem"));
|
|
15
|
-
var _NotificationsCarousel = _interopRequireDefault(require("../NotificationsCarousel/NotificationsCarousel"));
|
|
16
|
-
var _NotificationsCarousel2 = require("../NotificationsCarousel/NotificationsCarousel.styles");
|
|
17
|
-
var _ToDoList = _interopRequireWildcard(require("../ToDoList/ToDoList"));
|
|
18
|
-
var _Tabs = _interopRequireWildcard(require("../Tabs/Tabs"));
|
|
19
|
-
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
20
|
-
var _SvgIcons = require("../SvgIcons");
|
|
21
|
-
var _rwd = require("../../styles/rwd");
|
|
22
|
-
var _AuthContext = require("../AuthConnect/AuthContext");
|
|
23
|
-
var _NotificationContext = require("../NotificationContext/NotificationContext");
|
|
24
|
-
var _ProfileHeader = require("./ProfileHeader.styles");
|
|
25
|
-
var _bignumber = require("bignumber.js");
|
|
26
|
-
var _user = _interopRequireDefault(require("../../api/user"));
|
|
27
|
-
var _avatarPlaceholder = _interopRequireDefault(require("../../static/images/avatar-placeholder.png"));
|
|
28
|
-
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
29
|
-
var _axios = _interopRequireDefault(require("../../model/axios"));
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
34
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
35
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
36
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
37
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
41
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
42
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
44
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
45
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
46
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
47
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
48
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
50
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
51
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
52
|
-
// const avatarInvestor = require('../../static/images/avatarinvestor.png')
|
|
53
|
-
var UserAvatarComponent = /*#__PURE__*/function (_React$Component) {
|
|
54
|
-
_inherits(UserAvatarComponent, _React$Component);
|
|
55
|
-
var _super = _createSuper(UserAvatarComponent);
|
|
56
|
-
function UserAvatarComponent() {
|
|
57
|
-
var _this;
|
|
58
|
-
_classCallCheck(this, UserAvatarComponent);
|
|
59
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60
|
-
args[_key] = arguments[_key];
|
|
61
|
-
}
|
|
62
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
63
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
64
|
-
finalAvatar: undefined
|
|
65
|
-
});
|
|
66
|
-
_defineProperty(_assertThisInitialized(_this), "checkUserPhoto", function (avatar) {
|
|
67
|
-
var http = new XMLHttpRequest();
|
|
68
|
-
http.open('HEAD', avatar, false);
|
|
69
|
-
http.send();
|
|
70
|
-
// console.log(http);
|
|
71
|
-
|
|
72
|
-
if (http.status !== 404) {
|
|
73
|
-
_this.setState({
|
|
74
|
-
finalAvatar: avatar
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
return _this;
|
|
79
|
-
}
|
|
80
|
-
_createClass(UserAvatarComponent, [{
|
|
81
|
-
key: "componentDidMount",
|
|
82
|
-
value: function componentDidMount() {
|
|
83
|
-
var avatar = this.props.avatar;
|
|
84
|
-
|
|
85
|
-
// console.log(avatar);
|
|
86
|
-
|
|
87
|
-
this.checkUserPhoto(avatar);
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "componentDidUpdate",
|
|
91
|
-
value: function componentDidUpdate(prevProps) {
|
|
92
|
-
var avatar = this.props.avatar;
|
|
93
|
-
if (!avatar && avatar !== prevProps.avatar) {
|
|
94
|
-
this.setState({
|
|
95
|
-
finalAvatar: undefined
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
if (avatar !== prevProps.avatar) {
|
|
99
|
-
this.checkUserPhoto(avatar);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
key: "render",
|
|
104
|
-
value: function render() {
|
|
105
|
-
var finalAvatar = this.state.finalAvatar;
|
|
106
|
-
var auth = this.props.auth;
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement(_ProfileBox.default, {
|
|
108
|
-
name: auth.name ? auth.name : auth.email,
|
|
109
|
-
pictureSrc: finalAvatar || _avatarPlaceholder.default,
|
|
110
|
-
handleEdit: function handleEdit() {
|
|
111
|
-
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
112
|
-
navigate('/settings/profile-and-privacy');
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}]);
|
|
117
|
-
return UserAvatarComponent;
|
|
118
|
-
}(_react.default.Component); // class UserAvatarComponent extends React.Component {
|
|
119
|
-
// state = {
|
|
120
|
-
// photo: avatarPlaceholder
|
|
121
|
-
// }
|
|
122
|
-
// componentDidMount() {
|
|
123
|
-
// const { avatar } = this.props;
|
|
124
|
-
// console.log(avatar);
|
|
125
|
-
// this.checkUserPhoto(avatar);
|
|
126
|
-
// }
|
|
127
|
-
// checkUserPhoto = (avatar) => {
|
|
128
|
-
// const http = new XMLHttpRequest();
|
|
129
|
-
// http.open('HEAD', avatar, false);
|
|
130
|
-
// http.send();
|
|
131
|
-
// // console.log(http);
|
|
132
|
-
// if (http.status !== 404) {
|
|
133
|
-
// this.setState({
|
|
134
|
-
// photo: avatar
|
|
135
|
-
// });
|
|
136
|
-
// }
|
|
137
|
-
// }
|
|
138
|
-
// render() {
|
|
139
|
-
// const { photo } = this.state;
|
|
140
|
-
// const { auth } = this.props;
|
|
141
|
-
// return (
|
|
142
|
-
// <ProfileBox
|
|
143
|
-
// name={auth.name ? auth.name : auth.email}
|
|
144
|
-
// // pictureSrc={avatarPlaceholder}
|
|
145
|
-
// pictureSrc={photo}
|
|
146
|
-
// handleEdit={() => navigate("/settings/profile-and-privacy")}
|
|
147
|
-
// />
|
|
148
|
-
// )
|
|
149
|
-
// }
|
|
150
|
-
// }
|
|
151
|
-
var notificationTab = function notificationTab() {
|
|
152
|
-
var isMobile = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
153
|
-
return /*#__PURE__*/_react.default.createElement(_NotificationContext.NotificationConsumer, null, function (_ref) {
|
|
154
|
-
var notifications = _ref.notifications,
|
|
155
|
-
markAsRead = _ref.markAsRead;
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(_NotificationsCarousel.default, {
|
|
157
|
-
dots: true,
|
|
158
|
-
isMobile: isMobile
|
|
159
|
-
}, notifications.map(function (notificationItem) {
|
|
160
|
-
var _id = notificationItem._id,
|
|
161
|
-
notification = notificationItem.notification;
|
|
162
|
-
return /*#__PURE__*/_react.default.createElement(_NotificationsCarousel2.NotificationSlide, {
|
|
163
|
-
key: _id
|
|
164
|
-
}, /*#__PURE__*/_react.default.createElement(_NotificationItem.default, {
|
|
165
|
-
type: notification.type,
|
|
166
|
-
title: notification.content.title,
|
|
167
|
-
text: notification.content.text,
|
|
168
|
-
progress: notification.content.progress,
|
|
169
|
-
transfer: notification.content.transfer,
|
|
170
|
-
handleCloseClick: function handleCloseClick() {
|
|
171
|
-
markAsRead(_id);
|
|
172
|
-
}
|
|
173
|
-
}));
|
|
174
|
-
}), !isMobile && /*#__PURE__*/_react.default.createElement(_NotificationsCarousel2.NotificationSlide, null));
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
// const todos = (
|
|
179
|
-
// <ComponentWrapper>
|
|
180
|
-
// <ToDoList
|
|
181
|
-
// successText="Almost done! Please complete all tasks in order to invest."
|
|
182
|
-
// tasks={[
|
|
183
|
-
// {
|
|
184
|
-
// title: "Verify Email",
|
|
185
|
-
// message: "Email verified",
|
|
186
|
-
// state: ToDoTaskState.APPROVED,
|
|
187
|
-
// link: "/"
|
|
188
|
-
// },
|
|
189
|
-
// {
|
|
190
|
-
// title: "Verify Identity",
|
|
191
|
-
// message: "Regected. Please re-apply",
|
|
192
|
-
// state: ToDoTaskState.REJECTED,
|
|
193
|
-
// link: "/verify-identity"
|
|
194
|
-
// },
|
|
195
|
-
// {
|
|
196
|
-
// title: "Register Ethereum Address",
|
|
197
|
-
// message: "In progress",
|
|
198
|
-
// state: ToDoTaskState.IN_PROGRESS,
|
|
199
|
-
// link: "/register-ethereum"
|
|
200
|
-
// },
|
|
201
|
-
// {
|
|
202
|
-
// title: "Complete Risk Questionnaire",
|
|
203
|
-
// message: "Approved",
|
|
204
|
-
// state: ToDoTaskState.APPROVED,
|
|
205
|
-
// link: "/risk-questionnaire"
|
|
206
|
-
// },
|
|
207
|
-
// {
|
|
208
|
-
// title: "Skipped task",
|
|
209
|
-
// message: "",
|
|
210
|
-
// state: ToDoTaskState.SKIPPED,
|
|
211
|
-
// link: "/"
|
|
212
|
-
// },
|
|
213
|
-
// {
|
|
214
|
-
// title: "Edited Task",
|
|
215
|
-
// message: "Draft",
|
|
216
|
-
// state: ToDoTaskState.DRAFT,
|
|
217
|
-
// link: "/"
|
|
218
|
-
// }
|
|
219
|
-
// ]}
|
|
220
|
-
// />
|
|
221
|
-
// </ComponentWrapper>
|
|
222
|
-
// );
|
|
223
|
-
|
|
224
|
-
var PANEL = {
|
|
225
|
-
NOTIFICATIONS: 'notifications',
|
|
226
|
-
TODOS: 'todos'
|
|
227
|
-
};
|
|
228
|
-
var ProfileHeader = /*#__PURE__*/function (_PureComponent) {
|
|
229
|
-
_inherits(ProfileHeader, _PureComponent);
|
|
230
|
-
var _super2 = _createSuper(ProfileHeader);
|
|
231
|
-
function ProfileHeader() {
|
|
232
|
-
var _this2;
|
|
233
|
-
_classCallCheck(this, ProfileHeader);
|
|
234
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
235
|
-
args[_key2] = arguments[_key2];
|
|
236
|
-
}
|
|
237
|
-
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
238
|
-
_defineProperty(_assertThisInitialized(_this2), "state", {
|
|
239
|
-
extendedPanel: null,
|
|
240
|
-
ether: 0,
|
|
241
|
-
euro: 0,
|
|
242
|
-
shouldRenderPage: false,
|
|
243
|
-
todoList: []
|
|
244
|
-
});
|
|
245
|
-
_defineProperty(_assertThisInitialized(_this2), "setTodos", function (todos) {
|
|
246
|
-
_this2.setState(function (prevState) {
|
|
247
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
248
|
-
todoList: todos
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
_defineProperty(_assertThisInitialized(_this2), "generateTodos", function (userData) {
|
|
253
|
-
// console.log(userData);
|
|
254
|
-
|
|
255
|
-
if (userData.user_type === 'investor_entity') {
|
|
256
|
-
_this2.setTodos([{
|
|
257
|
-
title: 'Verify Email',
|
|
258
|
-
message: 'Verified',
|
|
259
|
-
state: _ToDoList.ToDoTaskState.APPROVED
|
|
260
|
-
// tooltip: 'Example tooltip',
|
|
261
|
-
}, {
|
|
262
|
-
title: 'Register Ethereum Address',
|
|
263
|
-
message: userData.investor_eth_addresses ? 'Completed and approved' : 'Set up a blockchain address to safely store tokens and ether profit distributions.',
|
|
264
|
-
state: userData.investor_eth_addresses ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
265
|
-
link: "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/register-ethereum")
|
|
266
|
-
|
|
267
|
-
// tooltip: 'Example tooltip',
|
|
268
|
-
}, {
|
|
269
|
-
title: 'Risk Questionnaire',
|
|
270
|
-
message: userData.is_risk_questionnaire_finished ? 'Completed and approved' : 'Read the risks, tick the boxes, ta-da!',
|
|
271
|
-
state: userData.is_risk_questionnaire_finished ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
272
|
-
link: !userData.is_risk_questionnaire_finished && "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/risk-questionnaire")
|
|
273
|
-
|
|
274
|
-
// tooltip: 'Example tooltip',
|
|
275
|
-
}]);
|
|
276
|
-
} else {
|
|
277
|
-
_this2.setTodos([{
|
|
278
|
-
title: 'Verify Email',
|
|
279
|
-
message: 'Verified',
|
|
280
|
-
state: _ToDoList.ToDoTaskState.APPROVED
|
|
281
|
-
// tooltip: 'Example tooltip',
|
|
282
|
-
}, {
|
|
283
|
-
title: 'Verify Identity',
|
|
284
|
-
message: userData.kyc_status === 'in_progress' ? 'Pending approval' : userData.kyc_status === 'approved' ? 'Completed and approved' : 'Scan your ID to get the green light from the anti-fraud squad.',
|
|
285
|
-
state: userData.kyc_status === 'in_progress' ? _ToDoList.ToDoTaskState.IN_PROGRESS : userData.kyc_status === 'approved' ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
286
|
-
link: !userData.kyc_status && "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/verify-identity")
|
|
287
|
-
|
|
288
|
-
// tooltip: 'Example tooltip',
|
|
289
|
-
}, {
|
|
290
|
-
title: 'Register Ethereum Address',
|
|
291
|
-
message: userData.investor_eth_addresses ? 'Completed and approved' : 'Set up a blockchain address to safely store tokens and ether profit distributions.',
|
|
292
|
-
state: userData.investor_eth_addresses ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
293
|
-
link: "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/register-ethereum")
|
|
294
|
-
|
|
295
|
-
// tooltip: 'Example tooltip',
|
|
296
|
-
}, {
|
|
297
|
-
title: 'Risk Questionnaire',
|
|
298
|
-
message: userData.is_risk_questionnaire_finished ? 'Completed and approved' : 'Read the risks, tick the boxes, ta-da!',
|
|
299
|
-
state: userData.is_risk_questionnaire_finished ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
300
|
-
link: !userData.is_risk_questionnaire_finished && "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/risk-questionnaire")
|
|
301
|
-
// tooltip: 'Example tooltip',
|
|
302
|
-
}]);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
_this2.setState(function (prevState) {
|
|
306
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
307
|
-
shouldRenderPage: true
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
_defineProperty(_assertThisInitialized(_this2), "togglePanel", function (panelId) {
|
|
312
|
-
var extendedPanel = _this2.state.extendedPanel;
|
|
313
|
-
_this2.setState({
|
|
314
|
-
extendedPanel: extendedPanel !== panelId ? panelId : null
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
return _this2;
|
|
318
|
-
}
|
|
319
|
-
_createClass(ProfileHeader, [{
|
|
320
|
-
key: "componentDidMount",
|
|
321
|
-
value: function () {
|
|
322
|
-
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
323
|
-
var addresses, userData, accessToken, request, EDB_Request, ether, euro;
|
|
324
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
325
|
-
while (1) switch (_context.prev = _context.next) {
|
|
326
|
-
case 0:
|
|
327
|
-
addresses = [];
|
|
328
|
-
_context.prev = 1;
|
|
329
|
-
_context.next = 4;
|
|
330
|
-
return (0, _user.default)('get');
|
|
331
|
-
case 4:
|
|
332
|
-
userData = _context.sent;
|
|
333
|
-
if (userData.user.investor_eth_addresses) {
|
|
334
|
-
addresses = userData.user.investor_eth_addresses.map(function (obj) {
|
|
335
|
-
return obj.address;
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
this.setState(function (prevState) {
|
|
339
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
340
|
-
shouldRenderPage: true
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
this.generateTodos(this.props.user);
|
|
344
|
-
_context.next = 10;
|
|
345
|
-
return _jsCookie.default.get('STOKR_ACCESS_TOKEN');
|
|
346
|
-
case 10:
|
|
347
|
-
accessToken = _context.sent;
|
|
348
|
-
request = {
|
|
349
|
-
method: 'GET',
|
|
350
|
-
url: "".concat(process.env.REACT_APP_EVENTDB_ENDPOINT, "/investor/ether-balance?addresses=").concat(addresses.join()),
|
|
351
|
-
headers: {
|
|
352
|
-
Authorization: "Bearer ".concat(accessToken)
|
|
353
|
-
//accept: `application/json`,
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
_context.next = 14;
|
|
357
|
-
return (0, _axios.default)(request);
|
|
358
|
-
case 14:
|
|
359
|
-
EDB_Request = _context.sent;
|
|
360
|
-
if (EDB_Request && EDB_Request.etherBalance && EDB_Request.currentEtherPrice) {
|
|
361
|
-
ether = EDB_Request.etherBalance.totalEtherBalance;
|
|
362
|
-
euro = EDB_Request.currentEtherPrice * ether;
|
|
363
|
-
this.setState({
|
|
364
|
-
ether: new _bignumber.BigNumber(ether).toFixed(5),
|
|
365
|
-
euro: new _bignumber.BigNumber(euro).toFixed(2)
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
_context.next = 21;
|
|
369
|
-
break;
|
|
370
|
-
case 18:
|
|
371
|
-
_context.prev = 18;
|
|
372
|
-
_context.t0 = _context["catch"](1);
|
|
373
|
-
console.log(_context.t0);
|
|
374
|
-
// TODO: TO BE CLEANED UP
|
|
375
|
-
case 21:
|
|
376
|
-
case "end":
|
|
377
|
-
return _context.stop();
|
|
378
|
-
}
|
|
379
|
-
}, _callee, this, [[1, 18]]);
|
|
380
|
-
}));
|
|
381
|
-
function componentDidMount() {
|
|
382
|
-
return _componentDidMount.apply(this, arguments);
|
|
383
|
-
}
|
|
384
|
-
return componentDidMount;
|
|
385
|
-
}()
|
|
386
|
-
}, {
|
|
387
|
-
key: "render",
|
|
388
|
-
value: function render() {
|
|
389
|
-
var _this3 = this;
|
|
390
|
-
var _this$state = this.state,
|
|
391
|
-
extendedPanel = _this$state.extendedPanel,
|
|
392
|
-
ether = _this$state.ether,
|
|
393
|
-
euro = _this$state.euro,
|
|
394
|
-
todoList = _this$state.todoList;
|
|
395
|
-
var pendingTasksCount = todoList.reduce(function (count, task) {
|
|
396
|
-
if (task.state === _ToDoList.ToDoTaskState.APPROVED || task.state === _ToDoList.ToDoTaskState.IN_PROGRESS) {
|
|
397
|
-
return count;
|
|
398
|
-
}
|
|
399
|
-
return count + 1;
|
|
400
|
-
}, 0);
|
|
401
|
-
return /*#__PURE__*/_react.default.createElement(_AuthContext.AuthConsumer, null, function (_ref2) {
|
|
402
|
-
var auth = _ref2.auth,
|
|
403
|
-
avatar = _ref2.avatar;
|
|
404
|
-
return /*#__PURE__*/_react.default.createElement(_ProfileHeader.Container, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.Main, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.AvatarBox, null, /*#__PURE__*/_react.default.createElement(UserAvatarComponent, {
|
|
405
|
-
auth: auth,
|
|
406
|
-
avatar: avatar
|
|
407
|
-
})), /*#__PURE__*/_react.default.createElement(_ProfileHeader.InfoBox, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.InfoInner, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.Badges, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.Badge, null, /*#__PURE__*/_react.default.createElement(_ProfileBadge.default, {
|
|
408
|
-
title: "KYC Status",
|
|
409
|
-
icon: /*#__PURE__*/_react.default.createElement(_SvgIcons.VerifiedBadge, null),
|
|
410
|
-
color: "red"
|
|
411
|
-
})), /*#__PURE__*/_react.default.createElement(_ProfileHeader.Badge, {
|
|
412
|
-
borderBottom: true
|
|
413
|
-
}, /*#__PURE__*/_react.default.createElement(_ProfileBadge.default, {
|
|
414
|
-
title: "Early Adopter",
|
|
415
|
-
withIcon: true
|
|
416
|
-
}))), /*#__PURE__*/_react.default.createElement(_ProfileHeader.Stats, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.Stat, null, /*#__PURE__*/_react.default.createElement(_ProfileStat.default, {
|
|
417
|
-
label: "Ether balance",
|
|
418
|
-
unit: "ETH",
|
|
419
|
-
value: ether.toString(),
|
|
420
|
-
eqUnit: "\u20AC",
|
|
421
|
-
eqValue: euro.toString()
|
|
422
|
-
})))), /*#__PURE__*/_react.default.createElement(_ProfileHeader.Togglers, null, /*#__PURE__*/_react.default.createElement(_ProfileHeader.Toggler, null, /*#__PURE__*/_react.default.createElement(_NotificationContext.NotificationConsumer, null, function (_ref3) {
|
|
423
|
-
var notifications = _ref3.notifications;
|
|
424
|
-
return /*#__PURE__*/_react.default.createElement(_ExpandButton.default, {
|
|
425
|
-
title: "Notifications",
|
|
426
|
-
counter: notifications.length,
|
|
427
|
-
isOpened: extendedPanel === PANEL.NOTIFICATIONS,
|
|
428
|
-
onClick: function onClick() {
|
|
429
|
-
_this3.togglePanel(PANEL.NOTIFICATIONS);
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
}), /*#__PURE__*/_react.default.createElement(_rwd.DisplayOnBreakpoint, {
|
|
433
|
-
down: true,
|
|
434
|
-
breakpoint: "Medium"
|
|
435
|
-
}, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
436
|
-
isOpened: extendedPanel === PANEL.NOTIFICATIONS
|
|
437
|
-
}, notificationTab(true)))), /*#__PURE__*/_react.default.createElement(_ProfileHeader.Toggler, null, /*#__PURE__*/_react.default.createElement(_ExpandButton.default, {
|
|
438
|
-
title: "Checklist",
|
|
439
|
-
counter: pendingTasksCount,
|
|
440
|
-
isOpened: extendedPanel === PANEL.TODOS,
|
|
441
|
-
onClick: function onClick() {
|
|
442
|
-
_this3.togglePanel(PANEL.TODOS);
|
|
443
|
-
}
|
|
444
|
-
}), /*#__PURE__*/_react.default.createElement(_rwd.DisplayOnBreakpoint, {
|
|
445
|
-
down: true,
|
|
446
|
-
breakpoint: "Medium"
|
|
447
|
-
}, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
448
|
-
isOpened: extendedPanel === PANEL.TODOS
|
|
449
|
-
}, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_ToDoList.default, {
|
|
450
|
-
successText: "Almost done!",
|
|
451
|
-
tasks: _this3.state.todoList
|
|
452
|
-
})))))))), /*#__PURE__*/_react.default.createElement(_rwd.DisplayOnBreakpoint, {
|
|
453
|
-
up: true,
|
|
454
|
-
breakpoint: "Medium"
|
|
455
|
-
}, /*#__PURE__*/_react.default.createElement(_ProfileHeader.TabsContainer, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
456
|
-
noPadding: true,
|
|
457
|
-
borderBottom: true
|
|
458
|
-
}, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
459
|
-
isOpened: extendedPanel !== null
|
|
460
|
-
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
|
461
|
-
activeTab: extendedPanel
|
|
462
|
-
}, /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
|
|
463
|
-
tabId: PANEL.NOTIFICATIONS
|
|
464
|
-
}, notificationTab()), /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
|
|
465
|
-
tabId: PANEL.TODOS
|
|
466
|
-
}, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_ToDoList.default, {
|
|
467
|
-
successText: "Almost done!",
|
|
468
|
-
tasks: _this3.state.todoList
|
|
469
|
-
})))))))));
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
}]);
|
|
473
|
-
return ProfileHeader;
|
|
474
|
-
}(_react.PureComponent);
|
|
475
|
-
exports.ProfileHeader = ProfileHeader;
|
|
476
|
-
var _default = ProfileHeader;
|
|
477
|
-
exports.default = _default;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// import React from 'react'
|
|
2
|
-
// import RegisterLiquidSteps from './flow'
|
|
3
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
-
|
|
5
|
-
// // import { AlgoAdressSelect } from 'index'
|
|
6
|
-
// import { AuthProvider } from '../context/AuthContext'
|
|
7
|
-
|
|
8
|
-
// export default {
|
|
9
|
-
// title: 'Components Library/Register Liquid Steps',
|
|
10
|
-
// component: RegisterLiquidSteps,
|
|
11
|
-
// argTypes: {},
|
|
12
|
-
// }
|
|
13
|
-
|
|
14
|
-
// const Template = args => (
|
|
15
|
-
// <AuthProvider>
|
|
16
|
-
// <ComponentWrapper>
|
|
17
|
-
// <RegisterLiquidSteps {...args} />
|
|
18
|
-
// </ComponentWrapper>
|
|
19
|
-
// </AuthProvider>
|
|
20
|
-
// )
|
|
21
|
-
|
|
22
|
-
// export const RegisterLiquidStepsDefault = Template.bind({})
|
|
23
|
-
// RegisterLiquidStepsDefault.args = {}
|
|
24
|
-
|
|
25
|
-
///////////////////////////////
|
|
26
|
-
///////////////old / other liquidsteps, not flow.js
|
|
27
|
-
|
|
28
|
-
// import RegisterLiquidSteps from './RegisterLiquidSteps'
|
|
29
|
-
|
|
30
|
-
// export default {
|
|
31
|
-
// title: 'Components Library/Register Liquid Steps',
|
|
32
|
-
// component: RegisterLiquidSteps,
|
|
33
|
-
// argTypes: {
|
|
34
|
-
// items: {
|
|
35
|
-
// type: 'array of shape',
|
|
36
|
-
// defaultValue: [
|
|
37
|
-
// {
|
|
38
|
-
// title: '',
|
|
39
|
-
// content: '',
|
|
40
|
-
// },
|
|
41
|
-
// ],
|
|
42
|
-
// },
|
|
43
|
-
// },
|
|
44
|
-
// }
|
|
45
|
-
|
|
46
|
-
// const Template = args => (
|
|
47
|
-
// <AuthProvider>
|
|
48
|
-
// <ComponentWrapper>
|
|
49
|
-
// <RegisterLiquidSteps {...args} />
|
|
50
|
-
// </ComponentWrapper>
|
|
51
|
-
// </AuthProvider>
|
|
52
|
-
// )
|
|
53
|
-
|
|
54
|
-
// export const RegisterLiquidStepsDefault = Template.bind({})
|
|
55
|
-
// RegisterLiquidStepsDefault.args = {}
|
|
56
|
-
|
|
57
|
-
// export const RegisterLiquidStepsFill = Template.bind({})
|
|
58
|
-
// RegisterLiquidStepsFill.args = {
|
|
59
|
-
// items: [
|
|
60
|
-
// {
|
|
61
|
-
// title: '',
|
|
62
|
-
// content: 'This is some LIQUID content',
|
|
63
|
-
// },
|
|
64
|
-
// ],
|
|
65
|
-
// }
|
|
66
|
-
"use strict";
|