Remove deprecations

This commit is contained in:
Piotr Rogowski 2022-11-04 20:02:45 +01:00
parent 4a776d0aaa
commit be797f7d13
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 50 additions and 42 deletions

View File

@ -277,25 +277,29 @@ const Diagnose = ({
className="logs-progress" className="logs-progress"
/> />
<Divider /> <Divider />
<Steps current={step} direction={lg ? 'horizontal' : 'vertical'}> <Steps
<Step current={step}
title="Downloading" direction={lg ? 'horizontal' : 'vertical'}
subTitle={fileSize} items={[
description={ {
fetchError ? fetchError!.message : <Space> title: 'Downloading',
<GlobalOutlined />{edgeLocation} subTitle: fileSize,
</Space> description: (
} fetchError ? fetchError!.message : <Space>
/> <GlobalOutlined />{edgeLocation}
<Step </Space>
title="Decoding" ),
description="Parsing CSV" },
/> {
<Step title: 'Decoding',
title="Rendering" description: 'Parsing CSV',
description="Putting pixels on your screen" },
/> {
</Steps> title: 'Rendering',
description: 'Putting pixels on your screen',
},
]}
/>
</Space> </Space>
} }
</div> </div>

View File

@ -384,29 +384,33 @@ const Logs = ({
className="logs-progress" className="logs-progress"
/> />
<Divider /> <Divider />
<Steps current={step} direction={lg ? 'horizontal' : 'vertical'}> <Steps
<Step current={step}
title="Downloading" direction={lg ? 'horizontal' : 'vertical'}
subTitle={fileSize} items={[
description={ {
fetchError ? fetchError!.message : <Space> title: 'Downloading',
<GlobalOutlined />{edgeLocation} subTitle: fileSize,
</Space> description: (
} fetchError ? fetchError!.message : <Space>
status={fetchError && 'error'} <GlobalOutlined />{edgeLocation}
/> </Space>
<Step ),
title="Decoding" status: fetchError && 'error',
description={parseError ? parseError!.message : 'Reading ones and zeros'} },
subTitle={parseElapsed} {
status={parseError && 'error'} title: 'Decoding',
/> description: parseError ? parseError!.message : 'Reading ones and zeros',
<Step subTitle: parseElapsed,
title="Rendering" status: parseError && 'error',
description="Putting pixels on your screen" },
subTitle={samplesCount && `${samplesCount} samples`} {
/> title: 'Rendering',
</Steps> description: 'Putting pixels on your screen',
subTitle: samplesCount && `${samplesCount} samples`,
},
]}
/>
</Space> </Space>
} }
</div> </div>