From c071597b29a452a26fa4bf63d0d9deec65dbf734 Mon Sep 17 00:00:00 2001 From: lzhabo <52199564+lzhabo@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:58:10 +0000 Subject: [PATCH] added twitter links --- spark-frontend/src/constants/index.ts | 1 + .../src/screens/TradeScreen/StatusBar/StatusBar.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/spark-frontend/src/constants/index.ts b/spark-frontend/src/constants/index.ts index 71306c90..4c6ebe5e 100644 --- a/spark-frontend/src/constants/index.ts +++ b/spark-frontend/src/constants/index.ts @@ -67,6 +67,7 @@ export const MENU_ITEMS: Array = [ { 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 { diff --git a/spark-frontend/src/screens/TradeScreen/StatusBar/StatusBar.tsx b/spark-frontend/src/screens/TradeScreen/StatusBar/StatusBar.tsx index f783d75d..492a30de 100644 --- a/spark-frontend/src/screens/TradeScreen/StatusBar/StatusBar.tsx +++ b/spark-frontend/src/screens/TradeScreen/StatusBar/StatusBar.tsx @@ -52,10 +52,16 @@ const LinkText = styled(Text)` const StatusBar: React.FC = 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 ( - + + + Twitter + + ✨Wanna sparkle?