Skip to content

Commit

Permalink
update expired discord link in Tenscan
Browse files Browse the repository at this point in the history
- open links in blank page
  • Loading branch information
Jennievon committed Dec 19, 2023
1 parent 00cfd2c commit cd2fb78
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 43 deletions.
51 changes: 30 additions & 21 deletions tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,41 @@ import {
DiscordLogoIcon,
} from "@radix-ui/react-icons";

const SOCIAL_LINKS = [
{
name: "GitHub",
href: socialLinks.github,
icon: GitHubLogoIcon,
},
{
name: "Twitter",
href: socialLinks.twitter,
icon: TwitterLogoIcon,
},
{
name: "Discord",
href: socialLinks.discord,
icon: DiscordLogoIcon,
},
];

export default function Footer() {
return (
<div className="border-t p-2">
<div className="flex h-16 items-center justify-between px-4 flex-wrap">
<div className="flex items-center space-x-4 pr-2">
<a
href={socialLinks.github}
aria-label="GitHub"
className="text-muted-foreground hover:text-primary transition-colors"
>
<GitHubLogoIcon />
</a>
<a
href={socialLinks.twitter}
aria-label="Twitter"
className="text-muted-foreground hover:text-primary transition-colors"
>
<TwitterLogoIcon />
</a>
<a
href={socialLinks.discord}
aria-label="Discord"
className="text-muted-foreground hover:text-primary transition-colors"
>
<DiscordLogoIcon />
</a>
{SOCIAL_LINKS.map((item, index) => (
<a
key={index}
href={item.href}
aria-label={item.name}
target="_blank"
rel="noopener noreferrer"
className="text-muted-foreground hover:text-primary transition-colors"
>
<item.icon />
</a>
))}
</div>
<div className="flex items-center justify-center space-x-4 pr-2">
<h3 className="text-xs text-muted-foreground">
Expand Down
2 changes: 1 addition & 1 deletion tools/obscuroscan_v3/frontend/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const socialLinks = {
github: "https://github.com/ten-protocol",
discord: "https://discord.gg/2JQ2Z3r",
discord: "https://discord.gg/QJZ39Den7d",
twitter: "https://twitter.com/tenprotocol",
twitterHandle: "@tenprotocol",
};
Expand Down
51 changes: 30 additions & 21 deletions tools/walletextension/frontend/src/components/layouts/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,43 @@ import {
} from "@radix-ui/react-icons";
import { useWalletConnection } from "../providers/wallet-provider";

const SOCIAL_LINKS = [
{
name: "GitHub",
href: socialLinks.github,
icon: GitHubLogoIcon,
},
{
name: "Twitter",
href: socialLinks.twitter,
icon: TwitterLogoIcon,
},
{
name: "Discord",
href: socialLinks.discord,
icon: DiscordLogoIcon,
},
];

export default function Footer() {
const { version } = useWalletConnection();

return (
<div className="border-t p-2">
<div className="flex h-16 items-center justify-between px-4 flex-wrap">
<div className="flex items-center space-x-4 pr-2">
<a
href={socialLinks.github}
aria-label="GitHub"
className="text-muted-foreground hover:text-primary transition-colors"
>
<GitHubLogoIcon />
</a>
<a
href={socialLinks.twitter}
aria-label="Twitter"
className="text-muted-foreground hover:text-primary transition-colors"
>
<TwitterLogoIcon />
</a>
<a
href={socialLinks.discord}
aria-label="Discord"
className="text-muted-foreground hover:text-primary transition-colors"
>
<DiscordLogoIcon />
</a>
{SOCIAL_LINKS.map((item, index) => (
<a
key={index}
href={item.href}
aria-label={item.name}
target="_blank"
rel="noopener noreferrer"
className="text-muted-foreground hover:text-primary transition-colors"
>
<item.icon />
</a>
))}
</div>
<div className="flex items-center justify-center space-x-4 pr-2">
<h3 className="text-xs text-muted-foreground">
Expand Down

0 comments on commit cd2fb78

Please sign in to comment.