v2: refactor (#264)

* chore: upgrade dependencies

* chore: remove unused

* fix: issue with missing index data

* fix: discrepancy on counting events

* fix: swapped classes

* fix: prevent attempting load in empty list

* chore: cleanup completed

* chore: remove unused

* refactor: convert to typescript

* refactor: migrate to new endpoints

* refactor: convert to typescript

* fix: prevent issue with undefined process

* fix: small code smells

* fix: issue with missing version variable on build

* refactor: configure retries on data fetching

* style: design review

* fix: prevent cursor out of range

* lint: react query linting

* style: checkbox styles
This commit is contained in:
Carlos Valente
2022-12-07 09:58:11 +01:00
committed by GitHub
parent d486d78594
commit c56c5a636d
76 changed files with 718 additions and 519 deletions
+1 -10
View File
@@ -1,6 +1,4 @@
import { useContext, useEffect } from 'react';
import Empty from 'common/components/state/Empty';
import { LoggingContext } from 'common/context/LoggingContext';
import RundownMenu from 'features/menu/RundownMenu';
import useRundown from '../../common/hooks-query/useRundown';
@@ -10,14 +8,7 @@ import Rundown from './Rundown';
import styles from '../editors/Editor.module.scss';
export default function RundownWrapper() {
const { emitError } = useContext(LoggingContext);
const { data, status, isError } = useRundown();
useEffect(() => {
if (isError) {
emitError('Error fetching data');
}
}, [emitError, isError]);
const { data, status } = useRundown();
return (
<>