Skip to content

Commit

Permalink
Added support buttons to Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Oct 27, 2023
1 parent c46617d commit c76e5b2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions frontend/src/Footer.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import React from "react";
import { Button } from "@mui/material";

function Footer() {
const handleDiscordButtonClick = () => {
const discordInviteLink = "https://discord.gg/RgZsQZqfp";

window.open(discordInviteLink, "_blank");
};
function openTab(url) {
window.open(url, "_blank");
}

function Footer() {
return (
<footer className="footer">
<Button color="inherit" onClick={handleDiscordButtonClick}>
Join Our Discord
<Button color="inherit" onClick={() => openTab("https://discord.gg/RgZsQZqfp")}>
Join our discord
</Button>
<Button color="inherit" onClick={() => openTab("https://github.com/macterra/artx-market/issues")}>
Report an issue
</Button>
<Button color="inherit" onClick={() => openTab("https://github.com/macterra/artx-market/wiki/Getting-Started")}>
Getting started
</Button>
</footer>
);
Expand Down

0 comments on commit c76e5b2

Please sign in to comment.