From d393ee958a5438db513d87a62ac4fc5871c55e0b Mon Sep 17 00:00:00 2001 From: Josh Edwards Date: Fri, 7 Aug 2020 20:23:18 +0100 Subject: [PATCH 1/6] feature/contribution-links-footer - added github and slack links to the footer. Added tests for footer component. --- .env.example | 2 ++ src/assets/github.svg | 4 ++++ src/assets/slack.svg | 4 ++++ src/components/footer/Footer.js | 20 ++++++++++++++++++++ src/components/footer/Footer.test.js | 1 + src/constants/Variables.js | 4 ++++ 6 files changed, 35 insertions(+) create mode 100644 src/assets/github.svg create mode 100644 src/assets/slack.svg diff --git a/.env.example b/.env.example index fa0f2b1..770785c 100644 --- a/.env.example +++ b/.env.example @@ -6,5 +6,7 @@ REACT_APP_NEWS_FETCH_PROXY=REACT_APP_NEWS_FETCH_PROXY REACT_APP_TWITTER_URL=REACT_APP_TWITTER_URL REACT_APP_FACEBOOK_URL=REACT_APP_FACEBOOK_URL REACT_APP_INSTAGRAM_URL=REACT_APP_INSTAGRAM_URL +REACT_APP_GITHUB_URL=REACT_APP_GITHUB_URL +REACT_APP_SLACK_URL=REACT_APP_SLACK_URL REACT_APP_ANDROID_URL=REACT_APP_ANDROID_URL REACT_APP_IOS_URL=REACT_APP_IOS_URL \ No newline at end of file diff --git a/src/assets/github.svg b/src/assets/github.svg new file mode 100644 index 0000000..ac60ebf --- /dev/null +++ b/src/assets/github.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/slack.svg b/src/assets/slack.svg new file mode 100644 index 0000000..9450173 --- /dev/null +++ b/src/assets/slack.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/footer/Footer.js b/src/components/footer/Footer.js index b88e094..233f105 100644 --- a/src/components/footer/Footer.js +++ b/src/components/footer/Footer.js @@ -7,6 +7,8 @@ import Apple from '../../assets/AppStorebadge.svg'; import Twitter from '../../assets/twitter.svg'; import Facebook from '../../assets/facebook.svg'; import Instagram from '../../assets/instagram.svg'; +import Github from '../../assets/github.svg'; +import Slack from '../../assets/slack.svg'; import Variables from '../../constants/Variables'; import { @@ -89,6 +91,24 @@ const Footer = () => ( > instagram-handle +
+

CONTRIBUTE

+ + github-handle + + + slack-handle + diff --git a/src/components/footer/Footer.test.js b/src/components/footer/Footer.test.js index f0faadd..195efda 100644 --- a/src/components/footer/Footer.test.js +++ b/src/components/footer/Footer.test.js @@ -23,6 +23,7 @@ describe('