mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50: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);
|
setGroupId(groupId);
|
||||||
setLevelId(levelId);
|
setLevelId(levelId);
|
||||||
setPageId(-1);
|
setPageId(0);
|
||||||
},
|
},
|
||||||
eventUrlPrefix: 'group-members/'
|
eventUrlPrefix: 'group-members/'
|
||||||
};
|
};
|
||||||
|
@ -260,7 +260,10 @@ export const GuideToolView: FC<{}> = props =>
|
|||||||
|
|
||||||
useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent);
|
useMessageEvent(GuideSessionDetachedMessageEvent, onGuideSessionDetachedMessageEvent);
|
||||||
|
|
||||||
const linkReceived = useCallback((url: string) =>
|
useEffect(() =>
|
||||||
|
{
|
||||||
|
const linkTracker: ILinkEventTracker = {
|
||||||
|
linkReceived: (url: string) =>
|
||||||
{
|
{
|
||||||
const parts = url.split('/');
|
const parts = url.split('/');
|
||||||
|
|
||||||
@ -272,19 +275,14 @@ export const GuideToolView: FC<{}> = props =>
|
|||||||
//Create Tour Request
|
//Create Tour Request
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, []);
|
},
|
||||||
|
|
||||||
useEffect(() =>
|
|
||||||
{
|
|
||||||
const linkTracker: ILinkEventTracker = {
|
|
||||||
linkReceived,
|
|
||||||
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