Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
50 lines
1.7 KiB
TypeScript
50 lines
1.7 KiB
TypeScript
// Module ID: 13645
|
|
// Function ID: 13646
|
|
// Name: PremiumUnverifiedWarning
|
|
// Dependencies: [19, 1371, 21, 4605, 576, 4315, 1178, 1114, 504, 2]
|
|
|
|
// Module 13645 (PremiumUnverifiedWarning)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import native from "native" /* 1178 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
import initialize from "initialize" /* 504 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4605);
|
|
const obj2 = { warning: { color: nativeDefault.unsafe_rawColors.RED_400, fontSize: 12, marginTop: 10 } };
|
|
let closure_4 = createStyles.createLegacyClassComponentStyles(obj2);
|
|
const PureComponent = noop.PureComponent;
|
|
class PremiumUnverifiedWarning extends PureComponent {
|
|
}
|
|
PremiumUnverifiedWarning.prototype["render"] = function render() {
|
|
let tmp3 = null;
|
|
if (!this.props.verified) {
|
|
const obj = { style: null, children: null };
|
|
const items = [tmp.warning, tmp2];
|
|
obj.style = items;
|
|
const intl = util.intl;
|
|
obj.children = intl.string(util.t["0LgOKH"]);
|
|
tmp3 = jsx(native.LegacyText, { style: null, children: null });
|
|
}
|
|
return tmp3;
|
|
};
|
|
PremiumUnverifiedWarning.contextType = fn(4315).ThemeContext;
|
|
let items = [UserStore];
|
|
const obj3 = { color: nativeDefault.unsafe_rawColors.RED_400, fontSize: 12, marginTop: 10 };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("components_native/premium/PremiumUnverifiedWarning.tsx");
|
|
|
|
export default initialize.connectStores(items, () => {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let verified;
|
|
if (currentUser != null) {
|
|
verified = currentUser.verified;
|
|
}
|
|
if (verified == null) {
|
|
verified = false;
|
|
}
|
|
return { verified };
|
|
})(PremiumUnverifiedWarning);
|