Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…hub-client into HEAD
  • Loading branch information
Thistleman committed Oct 2, 2024
2 parents 01a4b56 + f6e4c3f commit 5ce64b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/modules/homepage/demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": 1,
"file_completion": 100,
"created_by": "John Doe",
"execution_time": 42.021,
"execution_time": 42.02,
"status": "completed",
"metrics": ["time_series"],
"error": 26.207
Expand Down
13 changes: 8 additions & 5 deletions src/app/modules/homepage/demoTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export default function DemoBoard() {
groupable: false,
headerClassName: 'text-center',
valueGetter: (params: any) => {
return params !== null && params !== undefined ? params + '%' : 0 + '%';
return params !== null && params !== undefined ?
params.toFixed(2) + '%' : 0 + '%';
},
},
{
Expand All @@ -65,7 +66,8 @@ export default function DemoBoard() {
align: 'center',
flex: 1,
valueGetter: (params: any) => {
return params !== null && params !== undefined ? params : 'N/A';
return params !== null && params !== undefined ?
params.toFixed(2) : 'N/A';
},
},
{
Expand All @@ -75,7 +77,8 @@ export default function DemoBoard() {
align: 'center',
flex: 1,
valueGetter: (params: any) => {
return params !== null && params !== undefined ? params : 0;
return params !== null && params !== undefined ?
params.toFixed(2) : 0;
},
},
{
Expand Down Expand Up @@ -114,15 +117,15 @@ export default function DemoBoard() {
}} className='content-center justify-center'>
<Typography
variant="h1"
className="text-5xl font-bold sTextColor scale-[0.73]">
className="text-5xl font-bold sTextColor scale-[0.73] mt-2">
Demo Board
</Typography>
<DataGrid
columns={columns}
disableColumnFilter={true}
rows={Array.isArray(demo) ? demo : []}
hideFooter={true}
className="scale-[0.85]"
className="scale-[0.85] mb-2"
/>
</Box>
);
Expand Down

0 comments on commit 5ce64b0

Please sign in to comment.