Skip to content

Commit

Permalink
Fixed #598 : Updated css for sast report summary (#597)
Browse files Browse the repository at this point in the history
* Fixed #594

* Updated for css changes

---------

Co-authored-by: Sudhir Verma <[email protected]>
  • Loading branch information
asa1997 and sudhirverma authored Feb 23, 2024
1 parent 2c9e66b commit 2325f8d
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions src/pages/BesVersionHistory/AssessmentReport/FetchSastReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ const FetchSAST = ({ cqData, sqData }: any): any => {
});
const data = [
{
severity: "high",
count: high,
severity: "Critical",
count: critical,
},
{
severity: "critical",
count: critical,
severity: "High",
count: high,
},
{
severity: "medium",
severity: "Medium",
count: medium,
},
{
severity: "minor",
severity: "Low",
count: low,
},
];
Expand All @@ -63,11 +63,8 @@ const FetchSAST = ({ cqData, sqData }: any): any => {
>
Summary Report
</MKTypography>
<BasicTable
tableData={data}
tableHeading={headings}
tableStyle={{ textAling: "center" }}
/>

<BasicTable tableData={data} tableHeading={headings} tableStyle={{ textAlign: "center" }}/>
</>
);
} else if (
Expand Down Expand Up @@ -99,15 +96,15 @@ const FetchSAST = ({ cqData, sqData }: any): any => {
count: sqblocker,
},
{
severity: "critical",
severity: "Critical",
count: sqcritical,
},
{
severity: "major",
severity: "Major",
count: sqmajor,
},
{
severity: "minor",
severity: "Minor",
count: sqminor,
},
];
Expand All @@ -123,11 +120,8 @@ const FetchSAST = ({ cqData, sqData }: any): any => {
>
Summary Report
</MKTypography>
<BasicTable
tableData={data}
tableHeading={headings}
tableStyle={{ textAling: "center" }}
/>

<BasicTable tableData={data} tableHeading={headings} tableStyle={{ textAlign: "center" }}/>
</>
);
} else if (
Expand Down Expand Up @@ -159,20 +153,20 @@ const FetchSAST = ({ cqData, sqData }: any): any => {

const data = [
{
severity: "critical",
severity: "Critical",
count: cqcritical,
},
{
severity: "high",
severity: "High",
count: cqhigh,
},
{
severity: "low",
count: cqlow,
severity: "Medium",
count: cqmedium,
},
{
severity: "medium",
count: cqmedium,
severity: "Low",
count: cqlow,
},
];
const headings = ["severity", "count"];
Expand All @@ -187,11 +181,7 @@ const FetchSAST = ({ cqData, sqData }: any): any => {
>
Summary Report
</MKTypography>
<BasicTable
tableData={data}
tableHeading={headings}
tableStyle={{ textAling: "center" }}
/>
<BasicTable tableData={data} tableHeading={headings} tableStyle={{ textAlign: "center" }} />
</>
);
}
Expand Down

0 comments on commit 2325f8d

Please sign in to comment.