1- import Box from "@mui/material/Box" ;
2- import Grid2 from "@mui/material/Grid2" ;
1+ import { Card , CardContent , Grid2 , Stack } from "@mui/material" ;
32
43import Chip from "../design_system/chip/Chip" ;
54
@@ -18,26 +17,11 @@ export default function BenchmarksContainer({
1817} ) {
1918 const router = useRouter ( ) ;
2019 return (
21- < Box
22- sx = { {
23- marginBottom : "2rem" ,
24- width : "100%" ,
25- } }
26- >
27- < Box
28- sx = { {
29- display : "flex" ,
30- flexDirection : "column" ,
31- justifyContent : "space-between" ,
32- backgroundColor : "var(--grey-100)" ,
33- padding : "24px" ,
34- gap : "24px" ,
35- borderRadius : "8px" ,
36- } }
37- >
20+ < Card >
21+ < CardContent >
3822 < Chip
3923 variant = "task"
40- label = { `Benchmark ${ benchmarks ? benchmarks ?. number . toString ( ) : "" } ` }
24+ label = { `Benchmark # ${ benchmarks ? benchmarks ?. number . toString ( ) : "" } ` }
4125 sx = { { marginTop : "10px" , marginBottom : "10px" } }
4226 />
4327 < p > { benchmarks ?. description } </ p >
@@ -46,7 +30,7 @@ export default function BenchmarksContainer({
4630 spacing = { 2 }
4731 columnSpacing = { { xs : 1 , sm : 2 , md : 3 } }
4832 direction = { { xs : "column" , sm : "row" } }
49- sx = { { marginTop : "30px" , width : "100%" } }
33+ sx = { { marginTop : "30px" , width : "100%" , marginBottom : "1.5rem" } }
5034 >
5135 < Grid2 size = { 6 } className = { styles . GridItems } >
5236 < h1 > Frequency</ h1 >
@@ -65,18 +49,16 @@ export default function BenchmarksContainer({
6549 < p > { benchmarks ?. setup } </ p >
6650 </ Grid2 >
6751 </ Grid2 >
68- < Box
69- sx = { { display : "flex" , justifyContent : "center" , marginTop : "20px" } }
70- >
52+ < Stack alignItems = "center" >
7153 < Button
7254 onClick = { ( ) =>
7355 router . push ( `/benchmarks/${ benchmarks ?. benchmark_id } ` )
7456 }
7557 >
7658 Start Trial
7759 </ Button >
78- </ Box >
79- </ Box >
80- </ Box >
60+ </ Stack >
61+ </ CardContent >
62+ </ Card >
8163 ) ;
8264}
0 commit comments