Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: footer links #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/DownloadDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
Button,
} from "@material-ui/core";

export const GITHUB_URL =
"https://github.com/UnstoppableSwap/unstoppableswap-gui";
export const GITHUB_URL = "https://github.com/UnstoppableSwap/core";

export default function DownloadDialog({
open,
Expand Down
11 changes: 6 additions & 5 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Box, Icon, makeStyles } from "@material-ui/core";
import { Box, makeStyles } from "@material-ui/core";
import { GITHUB_URL } from "./DownloadDialog";
import GitHubIcon from "@material-ui/icons/GitHub";
import IconButton from "@material-ui/core/IconButton";
import { GITHUB_URL } from "./DownloadDialog";
import TwitterIcon from "@material-ui/icons/Twitter";
import YouTubeIcon from "@material-ui/icons/YouTube";
import DiscordIcon from "./icons/DiscordIcon";

const TWITTER_URL = "https://twitter.com/UnstoppableSwap";
const TWITTER_URL = "https://x.com/UnstoppableSwap";
const YOUTUBE_URL = "https://www.youtube.com/@unstoppableswap6306";
const DISCORD_INVITE_URL = "https://discord.gg/Wpkffvbt";

Expand All @@ -18,6 +18,7 @@ const useStyles = makeStyles({
width: "100%",
display: "flex",
justifyContent: "center",
marginBottom: "2rem",
},
});

Expand All @@ -33,9 +34,9 @@ export const Footer = () => {

return (
<Box className={classes.root}>
{links.map(([icon, link], i) => {
{links.map(([icon, link]) => {
return (
<IconButton key={i} onClick={() => window.open(link, "_blank")}>
<IconButton key={link} onClick={() => window.open(link, "_blank")}>
{icon}
</IconButton>
);
Expand Down