Skip to content

Commit

Permalink
footer links
Browse files Browse the repository at this point in the history
- fix Github link (Closes UnstoppableSwap#18)
- adjust x/twitter link to avoid extra redirect
- add small padding to bottom of footer
  • Loading branch information
ThatOneCalculator committed Dec 23, 2024
1 parent 7f2ccd7 commit ba3aa56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit ba3aa56

Please sign in to comment.