{({
onMouseEnter,
onMouseLeave
}) => {
return {
const index = activities.indexOf(currentActivity!);
if (index - 1 >= 0)
setCurrentActivity(activities[index - 1]);
}}
>
;
}}
{activities.map((activity, index) => (
setCurrentActivity(activity)}
className={`dot ${currentActivity === activity ? "selected" : ""}`} />
))}
{({
onMouseEnter,
onMouseLeave
}) => {
return {
const index = activities.indexOf(currentActivity!);
if (index + 1 < activities.length)
setCurrentActivity(activities[index + 1]);
}}
>
= activities.length - 1}
direction="right" />
;
}}
);
} else {
return (
{activities.map((activity, index) => (
))}
);
}
},
patches: [
{
// Patch activity icons
find: ".getHangStatusActivity():null!",
replacement: {
match: /null!=(\i)&&\i.some\(\i=>\(0,\i.\i\)\(\i,\i\)\)\?/,
replace: "$self.patchActivityList(e),false?"
},
predicate: () => settings.store.memberList,
},
{
// Show all activities in the profile panel
find: /\i\.\i\i\.PANEL,themeOverride:.{1,5}children:/,
replacement: {
match: /(?<=\(0,\i\.jsx\)\()\i\.\i(?=,{activity:.+?,user:\i,channelId:\i.id,)/,
replace: "$self.showAllActivitiesComponent"
},
predicate: () => settings.store.profileSidebar,
},
{
// Show all activities in the user popout
find: "customStatusSection,",
replacement: {
match: /(?<=\(0,\i\.jsx\)\()\i\.\i(?=,{activity:\i,user:\i,guild:\i,channelId:\i,onClose:\i,)/,
replace: "$self.showAllActivitiesComponent"
},
predicate: () => settings.store.userPopout
}
],
});