mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
More fixes
This commit is contained in:
parent
31416476c9
commit
07fde6efe1
@ -114,7 +114,7 @@ export const GroupMembersView: FC<{}> = props =>
|
||||
|
||||
setGroupId(groupId);
|
||||
setLevelId(levelId);
|
||||
setPageId(-1);
|
||||
setPageId(0);
|
||||
},
|
||||
eventUrlPrefix: 'group-members/'
|
||||
};
|
||||
|
@ -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) =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user