mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
More fixes
This commit is contained in:
parent
31416476c9
commit
07fde6efe1
@ -114,7 +114,7 @@ export const GroupMembersView: FC<{}> = props =>
|
|||||||
|
|
||||||
setGroupId(groupId);
|
setGroupId(groupId);
|
||||||
setLevelId(levelId);
|
setLevelId(levelId);
|
||||||
setPageId(-1);
|
setPageId(0);
|
||||||
},
|
},
|
||||||
eventUrlPrefix: 'group-members/'
|
eventUrlPrefix: 'group-members/'
|
||||||
};
|
};
|
||||||
|
@ -260,31 +260,29 @@ export const GuideToolView: FC<{}> = props =>
|
|||||||
|
|
||||||
useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent);
|
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(() =>
|
useEffect(() =>
|
||||||
{
|
{
|
||||||
const linkTracker: ILinkEventTracker = {
|
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/'
|
eventUrlPrefix: 'help/'
|
||||||
};
|
};
|
||||||
|
|
||||||
AddEventLinkTracker(linkTracker);
|
AddEventLinkTracker(linkTracker);
|
||||||
|
|
||||||
return () => RemoveLinkEventTracker(linkTracker);
|
return () => RemoveLinkEventTracker(linkTracker);
|
||||||
}, [ linkReceived ]);
|
}, []);
|
||||||
|
|
||||||
const processAction = useCallback((action: string) =>
|
const processAction = useCallback((action: string) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user