builds again

This commit is contained in:
Zack Rauen 2020-02-29 15:01:27 -05:00
parent a7f9978957
commit 23bfd6bbb9
4 changed files with 12 additions and 11 deletions

File diff suppressed because one or more lines are too long

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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);

View File

@ -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>;