35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
// Module ID: 16233
|
|
// Function ID: 16234
|
|
// Name: useHandleOAuthNavigation
|
|
// Dependencies: [19, 676, 8774, 5260, 10766, 2007, 1231, 2]
|
|
// Exports: default
|
|
|
|
// Module 16233 (useHandleOAuthNavigation)
|
|
import noop from "noop";
|
|
import { ComponentActions } from "ME";
|
|
import { OAUTH2_AUTHORIZE_MODAL_KEY as closure_5 } from "OAUTH2_AUTHORIZE_MODAL_KEY";
|
|
|
|
const require = arg1;
|
|
const result = require("OAUTH2_AUTHORIZE_MODAL_KEY").fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
|
|
|
|
export default function useHandleOAuthNavigation() {
|
|
const effect = React.useEffect(() => {
|
|
function showOAuth2Modal(arg0) {
|
|
let obj = callback(paths[3]);
|
|
obj.popWithKey(closure_5);
|
|
obj = {};
|
|
const obj2 = callback(paths[3]);
|
|
const merged = Object.assign(arg0);
|
|
obj.dismissOAuthModal = function dismissOAuthModal() {
|
|
callback(table[3]).popWithKey(closure_5);
|
|
};
|
|
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj, closure_5);
|
|
}
|
|
let ComponentDispatch = showOAuth2Modal(table[6]).ComponentDispatch;
|
|
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
|
return () => {
|
|
const ComponentDispatch = showOAuth2Modal(outer1_2[6]).ComponentDispatch;
|
|
ComponentDispatch.unsubscribe(outer1_4.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
|
};
|
|
}, []);
|
|
};
|