This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// removes your box from the page so you don't get removed from the group | |
$$('[data-name=GroupProfileGridItem]')[0].remove(); | |
// member action dropdowns | |
const actions = $$('.adminActions'); | |
// open all dropdowns so they're added to the DOM | |
for (var i = 0; i < actions.length; i++) { | |
$$('.adminActions a')[i] && $$('.adminActions a')[i].click(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function useIsPendingPathname(to) { | |
let { location } = useTransition(); | |
let { pathname } = useResolvedPath(to); | |
return location?.pathname === pathname; | |
} | |
function useIsSlowTransition(ms = 300) { | |
let transition = useTransition(); | |
let [isSlow, setIsSlow] = useState(false); |