Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
37 lines
1.5 KiB
TypeScript
37 lines
1.5 KiB
TypeScript
// Module ID: 17219
|
|
// Function ID: 17220
|
|
// Name: useHandleOAuthNavigation
|
|
// Dependencies: [19, 1074, 9717, 4841, 9721, 1897, 1110, 2]
|
|
// Exports: default
|
|
|
|
// Module 17219 (useHandleOAuthNavigation)
|
|
import ComponentDispatchUtils from "ComponentDispatchUtils" /* 1110 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const ComponentActions = fn(1074).ComponentActions;
|
|
let closure_5 = fn(9717).OAUTH2_AUTHORIZE_MODAL_KEY;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
|
|
|
|
export default function useHandleOAuthNavigation() {
|
|
const effect = noop.useEffect(() => {
|
|
function showOAuth2Modal(arg0) {
|
|
closure_1_1(paths[3]).popWithKey(closure_1_5);
|
|
const obj = closure_1_1(paths[3]);
|
|
const obj3 = {};
|
|
const obj2 = closure_1_1(paths[3]);
|
|
const merged = Object.assign(arg0);
|
|
obj3.dismissOAuthModal = function dismissOAuthModal() {
|
|
closure_1_1(paths[3]).popWithKey(closure_1_5);
|
|
};
|
|
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj3, closure_1_5);
|
|
}
|
|
let ComponentDispatch = showOAuth2Modal(1110).ComponentDispatch;
|
|
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
|
return () => {
|
|
const ComponentDispatch = ComponentDispatchUtils.ComponentDispatch;
|
|
ComponentDispatch.unsubscribe(ComponentActions.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
|
};
|
|
}, []);
|
|
};
|