2022-11-08 15:46:46 +00:00
|
|
|
import React, { useEffect } from 'react';
|
2021-12-28 14:35:21 +00:00
|
|
|
import { useDispatch } from 'react-redux';
|
2021-11-10 17:49:53 +00:00
|
|
|
|
|
|
|
import JitsiScreen from '../../../base/modal/components/JitsiScreen';
|
2022-11-08 15:46:46 +00:00
|
|
|
import { resetSearchCriteria } from '../../actions';
|
2021-12-28 14:35:21 +00:00
|
|
|
|
2021-11-10 17:49:53 +00:00
|
|
|
|
|
|
|
import SpeakerStatsList from './SpeakerStatsList';
|
2021-12-28 14:35:21 +00:00
|
|
|
import SpeakerStatsSearch from './SpeakerStatsSearch';
|
2021-11-10 17:49:53 +00:00
|
|
|
import style from './styles';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that renders the list of speaker stats.
|
|
|
|
*
|
|
|
|
* @returns {React$Element<any>}
|
|
|
|
*/
|
2021-12-28 14:35:21 +00:00
|
|
|
const SpeakerStats = () => {
|
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
2022-11-08 15:46:46 +00:00
|
|
|
useEffect(() => {
|
|
|
|
dispatch(resetSearchCriteria());
|
|
|
|
}, []);
|
2021-12-28 14:35:21 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<JitsiScreen
|
|
|
|
style = { style.speakerStatsContainer }>
|
2022-11-08 15:46:46 +00:00
|
|
|
<SpeakerStatsSearch />
|
2021-12-28 14:35:21 +00:00
|
|
|
<SpeakerStatsList />
|
|
|
|
</JitsiScreen>
|
|
|
|
);
|
|
|
|
};
|
2021-11-10 17:49:53 +00:00
|
|
|
|
|
|
|
export default SpeakerStats;
|