Skip to content

Commit

Permalink
made repository button open in a new tab (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 authored Jan 14, 2025
1 parent 904f201 commit 8dc4d35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/AddonCard/AddonCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
} from "react-icons/fa";
import { Modal } from "react-overlays";
import AddonModal from "../AddonModal/AddonModal";
import { getImageProxyUrl } from "../../utils";

import './AddonCard.sass';

function BackDrop(props) {
Expand Down
4 changes: 1 addition & 3 deletions src/components/AddonModal/AddonModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import Icon from '../Icon'

import './AddonModal.sass';

import UNKNOWN_ICON from "../../images/unknown_icon.png"

function formatStrings(strings) {
if (strings.length === 0) return "";
else if (strings.length === 1) return strings[0]
Expand Down Expand Up @@ -111,7 +109,7 @@ function AddonModal({ addon, onHide }) {
}
<div className="Line appear centered">
{ typeof addon.links.download === "undefined" &&
<a href={addon.links.github}>
<a href={addon.links.github} target="_blank">
<Button>
<FaGithub style={{ marginRight: '0.6rem' }} />
Repository
Expand Down

0 comments on commit 8dc4d35

Please sign in to comment.