File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Button , Typography } from "@equinor/eds-core-react" ;
33import { Entry , useSimulationHistory } from "@/hooks/useSimulationHistory.ts" ;
4+ import { Link } from "react-router-dom" ;
45
56const SimulationHistory : React . FC = ( ) => {
67 const simulationHistory = useSimulationHistory ( ) ;
@@ -26,7 +27,7 @@ const SimulationHistory: React.FC = () => {
2627 < div style = { { display : "flex" , flexFlow : "column" , gap : "1em" } } key = { date } >
2728 < Typography variant = "h3" > { date } </ Typography >
2829 { entries . map ( ( entry ) => (
29- < Button variant = "outlined" href = { `/simulations/${ entry . id } ` } key = { entry . id } >
30+ < Button as = { Link } variant = "outlined" to = { `/simulations/${ entry . id } ` } key = { entry . id } >
3031 { entry . displayName } @ { entry . createdAt . getHours ( ) } :{ entry . createdAt . getMinutes ( ) }
3132 </ Button >
3233 ) ) }
You can’t perform that action at this time.
0 commit comments