Skip to content

Commit

Permalink
Change link text and href for twitter backups
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Feb 15, 2023
1 parent dcf0f1a commit 55433dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SavedTweetsLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React, { HTMLProps } from "react";
import { useWalletStore } from "src/store";
import Link from "./Link";
import clsx from "clsx";
import { p4eSpace } from "src/configs/spaces";

export type SavedTweetsLinksProps = HTMLProps<HTMLDivElement>;

const getLinks = (
address: string,
): { text: string; href: string; openInNewTab?: boolean; authOnly?: boolean }[] => {
const savedTweetLink = `https://polkaverse.com/accounts/${address}#tweets`;
const p4eSpaceLink = `https://polkaverse.com/${p4eSpace}`;
return [
{ text: "Post4Ever Tweets", href: "https://polkaverse.com", openInNewTab: true },
{ text: "Twitter Backups", href: p4eSpaceLink, openInNewTab: true },
{ text: "My Saved Tweets", href: savedTweetLink, openInNewTab: true, authOnly: true },
];
};
Expand Down

0 comments on commit 55433dd

Please sign in to comment.