builds again
This commit is contained in:
parent
a7f9978957
commit
23bfd6bbb9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -204,7 +204,7 @@ export default class Modals {
|
|||
click.preventDefault();
|
||||
click.stopPropagation();
|
||||
ModalStack.pop();
|
||||
BDV2.joinBD2();
|
||||
// TODO: BDV2.joinBD2();
|
||||
};
|
||||
const supportLink = Anchor ? ce(Anchor, {onClick: joinSupportServer}, "Join our Discord Server.") : ce("a", {className: `${AnchorClasses.anchor} ${AnchorClasses.anchorUnderlineOnHover}`, onClick: joinSupportServer}, "Join our Discord Server.");
|
||||
const defaultFooter = ce(TextElement,{size: TextElement.Sizes.SMALL, color: TextElement.Colors.PRIMARY}, "Need support? ", supportLink);
|
||||
|
|
|
@ -97,13 +97,14 @@ export default class AddonCard extends React.Component {
|
|||
buildLink(which) {
|
||||
const url = this.props.addon[which];
|
||||
if (which == "invite") {
|
||||
const onClick = () => {
|
||||
const tester = /\.gg\/(.*)$/;
|
||||
let code = url;
|
||||
if (tester.test(code)) code = code.match(tester)[1];
|
||||
BDV2.LayerStack.popLayer();
|
||||
BDV2.InviteActions.acceptInviteAndTransitionToInviteChannel(code);
|
||||
};
|
||||
// TODO:
|
||||
// const onClick = () => {
|
||||
// const tester = /\.gg\/(.*)$/;
|
||||
// let code = url;
|
||||
// if (tester.test(code)) code = code.match(tester)[1];
|
||||
// BDV2.LayerStack.popLayer();
|
||||
// BDV2.InviteActions.acceptInviteAndTransitionToInviteChannel(code);
|
||||
// };
|
||||
}
|
||||
if (!url) return null;
|
||||
return <a className="bd-link bd-link-website" href={url} target="_blank" rel="noopener noreferrer">{Strings.Addons[which]}</a>;
|
||||
|
|
Loading…
Reference in New Issue