diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index 5a7c54914..6445d6847 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -98,7 +98,7 @@ function LiveSessionList() {
- +
{t('Sort By')} diff --git a/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.tsx b/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.tsx index c780d6f2b..aeac1ba10 100644 --- a/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.tsx +++ b/frontend/app/components/shared/LiveSessionReloadButton/LiveSessionReloadButton.tsx @@ -4,15 +4,11 @@ import { observer } from 'mobx-react-lite'; import ReloadButton from '../ReloadButton'; import { useTranslation } from 'react-i18next'; -interface Props { - onClick: () => void; -} - -function LiveSessionReloadButton(props: Props) { +function LiveSessionReloadButton() { const { t } = useTranslation(); - const { sessionStore } = useStore(); - const { onClick } = props; - const loading = sessionStore.loadingLiveSessions; + const { searchStoreLive } = useStore(); + const onClick = searchStoreLive.fetchSessions + const loading = searchStoreLive.loading; return ( ); diff --git a/frontend/app/components/shared/ReloadButton/ReloadButton.tsx b/frontend/app/components/shared/ReloadButton/ReloadButton.tsx index a165a1cb2..66c517a87 100644 --- a/frontend/app/components/shared/ReloadButton/ReloadButton.tsx +++ b/frontend/app/components/shared/ReloadButton/ReloadButton.tsx @@ -18,6 +18,7 @@ export default function ReloadButton(props: Props) {