Skip to content

Commit e9271b6

Browse files
authored
Use external link styles for sandbox links (#4379)
1 parent 11bfa1f commit e9271b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/sandboxLink.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import ExternalLink from "./externalLink";
23
import usePlatform from "./hooks/usePlatform";
34

45
const scenarios = [
@@ -81,8 +82,10 @@ export default function SandboxLink({ children, platform, target, ...params }: P
8182
params.projectSlug = SANDBOX_PLATFORM_MAP[currentPlatform.key];
8283
}
8384
}
84-
85-
return <a href={getSandboxURL(params).toString()} target={target || '_blank'}>{children}</a>;
85+
86+
return <ExternalLink href={getSandboxURL(params).toString()} target={target || '_blank'}>
87+
{children}
88+
</ExternalLink>;
8689
}
8790

8891
export function SandboxOnly({children}) {

0 commit comments

Comments
 (0)