decord/source/actions/FriendsActionCreators.tsx

44 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17589
// Function ID: 17590
// Name: FriendsActionCreators
// Dependencies: [1074, 573, 1100, 16864, 2]
2026-07-23 10:11:24 +00:00
// Module 17589 (FriendsActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const router_utils = tmp(1100);
const trackFriendListClickedDefault = tmp5(16864);
const Routes = Constants.Routes;
const result = size.fileFinishedImporting("actions/FriendsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
transitionToSection(PENDING, arg1) {
let obj = arg1;
if (arg1 === undefined) {
obj = {};
}
let flag = obj.explicit;
if (flag === undefined) {
flag = false;
}
if (obj2.getHistory().location.pathname !== Routes.FRIENDS) {
router_utils.transitionTo(tmp3.FRIENDS);
const tmpResult = router_utils;
2026-07-20 16:05:17 +00:00
}
obj2 = router_utils;
DispatcherDefault.dispatch({ type: "FRIENDS_SET_SECTION", section: PENDING });
2026-07-20 16:05:17 +00:00
if (flag) {
const obj5 = { tab_opened: PENDING };
trackFriendListClickedDefault(obj5);
2026-07-20 16:05:17 +00:00
}
},
2026-07-29 08:29:29 +00:00
setSection(section) {
DispatcherDefault.dispatch({ type: "FRIENDS_SET_SECTION", section });
2026-07-29 08:29:29 +00:00
},
2026-07-20 16:05:17 +00:00
setInitialSection(section) {
DispatcherDefault.dispatch({ type: "FRIENDS_SET_INITIAL_SECTION", section });
2026-07-20 16:05:17 +00:00
}
};