mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Link improvements and fixes (#4501)
* Add ExternalLink * Replace <a> with <Link>
This commit is contained in:
@@ -45,6 +45,7 @@ import { DetailImage } from "src/components/Shared/DetailImage";
|
||||
import { useRatingKeybinds } from "src/hooks/keybinds";
|
||||
import { useLoadStickyHeader } from "src/hooks/detailsPanel";
|
||||
import { useScrollToTopOnMount } from "src/hooks/scrollToTop";
|
||||
import { ExternalLink } from "src/components/Shared/ExternalLink";
|
||||
|
||||
interface IProps {
|
||||
studio: GQL.StudioDataFragment;
|
||||
@@ -285,15 +286,13 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
||||
const renderClickableIcons = () => (
|
||||
<span className="name-icons">
|
||||
{studio.url && (
|
||||
<Button className="minimal icon-link" title={studio.url}>
|
||||
<a
|
||||
href={TextUtils.sanitiseURL(studio.url)}
|
||||
className="link"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Icon icon={faLink} />
|
||||
</a>
|
||||
<Button
|
||||
as={ExternalLink}
|
||||
href={TextUtils.sanitiseURL(studio.url)}
|
||||
className="minimal link"
|
||||
title={studio.url}
|
||||
>
|
||||
<Icon icon={faLink} />
|
||||
</Button>
|
||||
)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user