More fixes

This commit is contained in:
Bill 2022-07-27 19:18:45 -04:00
parent 31416476c9
commit 07fde6efe1
2 changed files with 15 additions and 17 deletions

View File

@ -114,7 +114,7 @@ export const GroupMembersView: FC<{}> = props =>
setGroupId(groupId);
setLevelId(levelId);
setPageId(-1);
setPageId(0);
},
eventUrlPrefix: 'group-members/'
};

View File

@ -260,31 +260,29 @@ export const GuideToolView: FC<{}> = props =>
useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent);
const linkReceived = useCallback((url: string) =>
{
const parts = url.split('/');
if(parts.length < 2) return;
switch(parts[1])
{
case 'tour':
//Create Tour Request
return;
}
}, []);
useEffect(() =>
{
const linkTracker: ILinkEventTracker = {
linkReceived,
linkReceived: (url: string) =>
{
const parts = url.split('/');
if(parts.length < 2) return;
switch(parts[1])
{
case 'tour':
//Create Tour Request
return;
}
},
eventUrlPrefix: 'help/'
};
AddEventLinkTracker(linkTracker);
return () => RemoveLinkEventTracker(linkTracker);
}, [ linkReceived ]);
}, []);
const processAction = useCallback((action: string) =>
{