29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
// Module ID: 8883
|
|
// Function ID: 8884
|
|
// Name: showInvite
|
|
// Dependencies: [8884, 706, 8668, 2]
|
|
// Exports: clearDisplayedInvite, showInvite
|
|
|
|
// Module 8883 (showInvite)
|
|
import set from "set" /* 2 */;
|
|
import dispatcherDefault from "dispatcher" /* 706 */;
|
|
import generateAcceptInviteOptionsDefault from "generateAcceptInviteOptions" /* 8668 */;
|
|
import getDisplayedInviteCode from "getDisplayedInviteCode" /* 8884 */;
|
|
|
|
const result = set.fileFinishedImporting("actions/native/DisplayedInviteActionCreators.tsx");
|
|
|
|
export const showInvite = function showInvite(code, username, arg2) {
|
|
let obj = arg2;
|
|
if (arg2 == null) {
|
|
obj = {};
|
|
}
|
|
({ deeplinkAttemptId, location: _location } = obj);
|
|
getDisplayedInviteCode;
|
|
obj = { type: "DISPLAYED_INVITE_SHOW", code, username, deeplinkAttemptId };
|
|
dispatcherDefault.dispatch(obj);
|
|
const obj2 = dispatcherDefault;
|
|
const invite = generateAcceptInviteOptionsDefault.resolveInvite(code, _location);
|
|
};
|
|
export const clearDisplayedInvite = function clearDisplayedInvite() {
|
|
dispatcherDefault.dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
|
|
};
|