Refactor/ts sockets (#210)

* refactor(ts): create socket subscription service
* refactor(ts-sockets): useSubscription hook
* refactor(ts-sockets): extract colour selection to utility
This commit is contained in:
Carlos Valente
2022-10-09 19:09:47 +02:00
committed by GitHub
parent f119fb4529
commit cd0577bf99
26 changed files with 346 additions and 254 deletions
@@ -12,7 +12,7 @@ import {
requestReorder,
} from 'common/api/eventsApi.js';
import Empty from 'common/components/state/Empty';
import { useFetch } from 'common/hooks/useFetch.js';
import { useFetch } from 'common/hooks/useFetch.ts';
import EventListMenu from 'features/menu/EventListMenu.jsx';
import { CollapseContext } from '../../../common/context/CollapseContext';