mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Reverted lazy load of StreamsTable
This commit is contained in:
parent
1029eb5b5c
commit
9c9cbab94c
1 changed files with 4 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { lazy, Suspense } from 'react';
|
import React from 'react';
|
||||||
import ChannelsTable from '../components/tables/ChannelsTable';
|
import ChannelsTable from '../components/tables/ChannelsTable';
|
||||||
const StreamsTable = lazy(() => import('../components/tables/StreamsTable'));
|
import StreamsTable from '../components/tables/StreamsTable';
|
||||||
import { Box, Text } from '@mantine/core';
|
import { Box, } from '@mantine/core';
|
||||||
import { Allotment } from 'allotment';
|
import { Allotment } from 'allotment';
|
||||||
import { USER_LEVELS } from '../constants';
|
import { USER_LEVELS } from '../constants';
|
||||||
import useAuthStore from '../store/auth';
|
import useAuthStore from '../store/auth';
|
||||||
|
|
@ -53,11 +53,7 @@ const PageContent = () => {
|
||||||
</Box>
|
</Box>
|
||||||
<Box p={10} miw={'100px'} style={{ overflowX: 'auto' }}>
|
<Box p={10} miw={'100px'} style={{ overflowX: 'auto' }}>
|
||||||
<Box miw={'600px'}>
|
<Box miw={'600px'}>
|
||||||
<ErrorBoundary>
|
<StreamsTable />
|
||||||
<Suspense fallback={<Text>Loading...</Text>}>
|
|
||||||
<StreamsTable />
|
|
||||||
</Suspense>
|
|
||||||
</ErrorBoundary>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Allotment>
|
</Allotment>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue