File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
sample-apps/react/react-dogfood/components Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { getConnectionString } from '../lib/connectionString';
44
55export const DevMenu = ( ) => {
66 const call = useCall ( ) ;
7+ const { useLocalParticipant } = useCallStateHooks ( ) ;
8+ const localParticipant = useLocalParticipant ( ) ;
79 return (
810 < ul className = "rd__dev-menu" >
911 < li className = "rd__dev-menu__item" >
@@ -107,6 +109,16 @@ export const DevMenu = () => {
107109 Go to Participant Stats
108110 </ a >
109111 ) }
112+ { call && localParticipant && (
113+ < a
114+ className = "rd__link rd__link--faux-button rd__link--align-left"
115+ href = { `/stats/${ call . cid } ?user_id=${ call . currentUserId } &user_session_id=${ call [ 'unifiedSessionId' ] || localParticipant . sessionId } }` }
116+ rel = "noreferrer"
117+ target = "_blank"
118+ >
119+ Go to { localParticipant ?. name || 'User' } Stats
120+ </ a >
121+ ) }
110122 </ ul >
111123 ) ;
112124} ;
You can’t perform that action at this time.
0 commit comments