Skip to content

Commit

Permalink
Use Link tag for correct styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Sep 2, 2024
1 parent 961030f commit c734583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Geopilot.Frontend/src/components/markdownContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import ReactMarkdown from "react-markdown";
import rehypeExternalLinks from "rehype-external-links";
import { FC } from "react";
import { Typography } from "@mui/material";
import { Link, Typography } from "@mui/material";

interface MarkdownContentProps {
content: string;
Expand All @@ -23,6 +23,7 @@ export const MarkdownContent: FC<MarkdownContentProps> = ({ content, routeHash }
h5: props => <Typography component="h5" variant="h6" {...props} />,
h6: props => <Typography component="h6" variant="h5" {...props} />,
p: props => <Typography component="p" variant="body1" {...props} />,
a: props => <Link {...props} target="_blank" rel="noreferrer" />,
}}>
{content}
</ReactMarkdown>
Expand Down
4 changes: 2 additions & 2 deletions src/Geopilot.Frontend/src/pages/footer/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const About = () => {
{licenseInfoCustom[key].version && ` (${t("version")} ${licenseInfoCustom[key].version})`}{" "}
</Typography>
<p>
<a href={licenseInfoCustom[key].repository}>{licenseInfoCustom[key].repository}</a>
<Link href={licenseInfoCustom[key].repository}>{licenseInfoCustom[key].repository}</Link>
</p>
<p>{licenseInfoCustom[key].description}</p>
<p>{licenseInfoCustom[key].copyright}</p>
Expand All @@ -119,7 +119,7 @@ export const About = () => {
{licenseInfo[key].version && ` (${t("version")} ${licenseInfo[key].version})`}{" "}
</Typography>
<p>
<a href={licenseInfo[key].repository}>{licenseInfo[key].repository}</a>
<Link href={licenseInfo[key].repository}>{licenseInfo[key].repository}</Link>
</p>
<p>{licenseInfo[key].description}</p>
<p>{licenseInfo[key].copyright}</p>
Expand Down

0 comments on commit c734583

Please sign in to comment.