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"
/>
<Divider />
<Steps current={step} direction={lg ? 'horizontal' : 'vertical'}>
<Step
title="Downloading"
subTitle={fileSize}
description={
fetchError ? fetchError!.message : <Space>
<GlobalOutlined />{edgeLocation}
</Space>
}
/>
<Step
title="Decoding"
description="Parsing CSV"
/>
<Step
title="Rendering"
description="Putting pixels on your screen"
/>
</Steps>
<Steps
current={step}
direction={lg ? 'horizontal' : 'vertical'}
items={[
{
title: 'Downloading',
subTitle: fileSize,
description: (
fetchError ? fetchError!.message : <Space>
<GlobalOutlined />{edgeLocation}
</Space>
),
},
{
title: 'Decoding',
description: 'Parsing CSV',
},
{
title: 'Rendering',
description: 'Putting pixels on your screen',
},
]}
/>
</Space>
}
</div>

View File

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