Link improvements and fixes (#4501)

* Add ExternalLink
* Replace <a> with <Link>
This commit is contained in:
DingDongSoLong4
2024-02-06 01:21:19 +02:00
committed by GitHub
parent 1d0fa27c71
commit cf8efa9035
28 changed files with 292 additions and 325 deletions

View File

@@ -2,6 +2,7 @@ import React from "react";
import * as GQL from "src/core/generated-graphql";
import { DetailItem } from "src/components/Shared/DetailItem";
import { StashIDPill } from "src/components/Shared/StashID";
import { Link } from "react-router-dom";
interface IStudioDetailsPanel {
studio: GQL.StudioDataFragment;
@@ -51,9 +52,9 @@ export const StudioDetailsPanel: React.FC<IStudioDetailsPanel> = ({
id="parent_studios"
value={
studio.parent_studio?.name ? (
<a href={`/studios/${studio.parent_studio?.id}`} target="_self">
<Link to={`/studios/${studio.parent_studio?.id}`}>
{studio.parent_studio.name}
</a>
</Link>
) : (
""
)