@@ -1,4 +1,4 @@
|
|||||||
import {Badge, Card, Space, Table, Tag} from "antd";
|
import {Card, Table, Tag} from "antd";
|
||||||
import LoadingSkeleton from "../../loading-skeleton/loading-skeleton.component";
|
import LoadingSkeleton from "../../loading-skeleton/loading-skeleton.component";
|
||||||
import {useTranslation} from "react-i18next";
|
import {useTranslation} from "react-i18next";
|
||||||
import React, {useEffect, useState} from "react";
|
import React, {useEffect, useState} from "react";
|
||||||
@@ -29,7 +29,7 @@ export default function JobLifecycleDashboardComponent({data, bodyshop, ...cardP
|
|||||||
getLifecycleData().catch(e => {
|
getLifecycleData().catch(e => {
|
||||||
console.error(`Error in getLifecycleData: ${e}`);
|
console.error(`Error in getLifecycleData: ${e}`);
|
||||||
})
|
})
|
||||||
}, [data]);
|
}, [data, bodyshop]);
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -149,7 +149,8 @@ export default function JobLifecycleDashboardComponent({data, bodyshop, ...cardP
|
|||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
<Card style={{marginTop: "5px"}} type='inner' title={t("job_lifecycle.titles.top_durations")}>
|
<Card style={{marginTop: "5px"}} type='inner' title={t("job_lifecycle.titles.top_durations")}>
|
||||||
<Table size="small" pagination={false} columns={columns} dataSource={ lifecycleData.summations.sort((a, b) => b.value - a.value).slice(0, 3)}/>
|
<Table size="small" pagination={false} columns={columns}
|
||||||
|
dataSource={lifecycleData.summations.sort((a, b) => b.value - a.value).slice(0, 3)}/>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
</LoadingSkeleton>
|
</LoadingSkeleton>
|
||||||
|
|||||||
Reference in New Issue
Block a user