mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Link improvements and fixes (#4501)
* Add ExternalLink * Replace <a> with <Link>
This commit is contained in:
@@ -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>
|
||||
) : (
|
||||
""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user