Элементы управления архивом занесены в LoaderPortal

This commit is contained in:
goodmice 2022-08-08 11:14:17 +05:00
parent cda32551ed
commit 310253133d

View File

@ -222,7 +222,7 @@ const Archive = memo(() => {
const chartData = useMemo(() => cutData(dataSaub, domain.min, domain.max), [dataSaub, domain]) const chartData = useMemo(() => cutData(dataSaub, domain.min, domain.max), [dataSaub, domain])
return ( return (
<> <LoaderPortal show={showLoader}>
<Flex style={{margin: '8px 8px 0'}}> <Flex style={{margin: '8px 8px 0'}}>
<div> <div>
Начальная дата:&nbsp; Начальная дата:&nbsp;
@ -243,27 +243,25 @@ const Archive = memo(() => {
</div> </div>
<CopyUrlButton style={{ marginLeft: '1rem' }} /> <CopyUrlButton style={{ marginLeft: '1rem' }} />
</Flex> </Flex>
<LoaderPortal show={showLoader}> <D3MonitoringCharts
<D3MonitoringCharts datasetGroups={chartGroups}
datasetGroups={chartGroups} data={chartData}
data={chartData} yDomain={domain}
yDomain={domain} yTicks={{
yTicks={{ visible: true,
visible: true, format: (d) => formatDate(d)
format: (d) => formatDate(d) }}
}} plugins={{
plugins={{ menu: { enabled: false },
menu: { enabled: false }, cursor: {
cursor: { width: 200,
width: 200, render: cursorRender,
render: cursorRender, }
} }}
}} height={'76vh'}
height={'76vh'} onWheel={onGraphWheel}
onWheel={onGraphWheel} />
/> </LoaderPortal>
</LoaderPortal>
</>
) )
}) })