Open external links of header in separate tab

This commit is contained in:
Nilay Majorwar 2022-02-27 01:45:46 +05:30
parent abcda33167
commit 3c500739bb

View File

@ -80,6 +80,7 @@ export const Header = (props: Props) => {
>
<LangNotesHint show={showNotesHint} />
<a
target="_blank"
href={NOTES_LINK(props.langId)}
onMouseEnter={() => setShowNotesHint(false)}
title="View the notes for this esolang"
@ -98,7 +99,7 @@ export const Header = (props: Props) => {
icon={<Icon icon={DarkMode.isDark ? "flash" : "moon"} />}
onClick={DarkMode.toggleDark}
/>
<a href={REPO_LINK} title="GitHub repository">
<a href={REPO_LINK} title="GitHub repository" target="_blank">
<Button minimal icon={<Icon icon={<GitHubIcon />} />} />
</a>
</div>