mirror of
https://github.com/magnum-opus-nn-cp/frontend.git
synced 2024-11-13 05:06:40 +03:00
fix: fix polling interval
This commit is contained in:
parent
5b47207bfd
commit
2ee63822cf
|
@ -4,7 +4,6 @@ import { Heading, HeadingSize } from '../../components/Heading';
|
||||||
import { useUrlParam } from '../../hooks/useUrlParam';
|
import { useUrlParam } from '../../hooks/useUrlParam';
|
||||||
import { TEXT_PAGE_PARAM } from '../../app/routes';
|
import { TEXT_PAGE_PARAM } from '../../app/routes';
|
||||||
import { ETextVariants, Text } from '../../components/Text';
|
import { ETextVariants, Text } from '../../components/Text';
|
||||||
import { getPercentageColor } from '../../utils/getPercentageColor';
|
|
||||||
import { Tooltip } from '../../components/Tooltip';
|
import { Tooltip } from '../../components/Tooltip';
|
||||||
import { Link } from '../../components/Link';
|
import { Link } from '../../components/Link';
|
||||||
import { useSingleTimeout } from '../../hooks/useSingleTimeout';
|
import { useSingleTimeout } from '../../hooks/useSingleTimeout';
|
||||||
|
@ -18,7 +17,7 @@ export type TextFields = {
|
||||||
type: ScoreType;
|
type: ScoreType;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TEXT_REFETCH_MS = 2000;
|
export const TEXT_REFETCH_MS = 500;
|
||||||
|
|
||||||
export const TextPage: FC = () => {
|
export const TextPage: FC = () => {
|
||||||
const textId = useUrlParam(TEXT_PAGE_PARAM, { parser: parseInt });
|
const textId = useUrlParam(TEXT_PAGE_PARAM, { parser: parseInt });
|
||||||
|
|
Loading…
Reference in New Issue
Block a user