Skip to content

Commit

Permalink
Avoid href when creating internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Nov 26, 2024
1 parent 1456fc6 commit a52a245
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/dashboard/src/components/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { Container,
CardActionArea
} from '@mui/material';
import React from 'react';
import { Link } from 'react-router-dom';

const workflowsCard = (
<React.Fragment>
<CardActionArea href="/workflows">
<CardActionArea component={Link} to="/workflows">
<CardContent>
<Typography gutterBottom variant="h5" component="div">
Workflows
Expand All @@ -25,7 +26,7 @@ const workflowsCard = (

const templatesCard = (
<React.Fragment>
<CardActionArea href='/templates'>
<CardActionArea component={Link} to='/templates'>
<CardContent>
<Typography gutterBottom variant="h5" component="div">
Templates
Expand Down

0 comments on commit a52a245

Please sign in to comment.