Skip to content

Commit a52a245

Browse files
committed
Avoid href when creating internal links
1 parent 1456fc6 commit a52a245

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/dashboard/src/components/dashboard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import { Container,
66
CardActionArea
77
} from '@mui/material';
88
import React from 'react';
9+
import { Link } from 'react-router-dom';
910

1011
const workflowsCard = (
1112
<React.Fragment>
12-
<CardActionArea href="/workflows">
13+
<CardActionArea component={Link} to="/workflows">
1314
<CardContent>
1415
<Typography gutterBottom variant="h5" component="div">
1516
Workflows
@@ -25,7 +26,7 @@ const workflowsCard = (
2526

2627
const templatesCard = (
2728
<React.Fragment>
28-
<CardActionArea href='/templates'>
29+
<CardActionArea component={Link} to='/templates'>
2930
<CardContent>
3031
<Typography gutterBottom variant="h5" component="div">
3132
Templates

0 commit comments

Comments
 (0)