Skip to content

Commit

Permalink
added twitter links
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhabo committed Feb 29, 2024
1 parent 4ee45e7 commit c071597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions spark-frontend/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const MENU_ITEMS: Array<TMenuItem> = [
{ title: "FAUCET", route: ROUTES.FAUCET },
{ title: "DOCS", link: "https://docs.sprk.fi" },
{ title: "GITHUB", link: "https://github.com/compolabs/spark" },
{ title: "TWITTER", link: "https://twitter.com/Sprkf" },
];

interface Network {
Expand Down
10 changes: 8 additions & 2 deletions spark-frontend/src/screens/TradeScreen/StatusBar/StatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,16 @@ const LinkText = styled(Text)`

const StatusBar: React.FC<IProps> = observer(() => {
const { accountStore } = useStores();
const tweet = `https://twitter.com/intent/tweet?text=${encodeURIComponent(tweets[Math.floor(Math.random() * tweets.length)])}`;
const tweet = `https://twitter.com/intent/tweet?text=${encodeURIComponent(
tweets[Math.floor(Math.random() * tweets.length)],
)}`;
return (
<Root>
<Row alignItems="center" mainAxisSize="fit-content" style={{ flex: 1 }} />
<Row alignItems="center" mainAxisSize="fit-content" style={{ flex: 1 }}>
<a href="https://twitter.com/Sprkfi" rel="noreferrer noopener" target="_blank">
<LinkText type={TEXT_TYPES.SUPPORTING}>Twitter</LinkText>
</a>
</Row>
<Row alignItems="center" justifyContent="center" mainAxisSize="fit-content" style={{ flex: 1 }}>
<a href={tweet} rel="noreferrer noopener" target="_blank">
<LinkText type={TEXT_TYPES.SUPPORTING}>✨Wanna sparkle?</LinkText>
Expand Down

0 comments on commit c071597

Please sign in to comment.