From 09e40ae99d887419f02fd217f667b863127daf52 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sun, 16 Jan 2022 14:57:41 -0500 Subject: [PATCH 1/3] Config added --- src/Config/config.js | 16 ++++++++++++++++ src/components/Service/ServiceSideMenu.js | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/Config/config.js diff --git a/src/Config/config.js b/src/Config/config.js new file mode 100644 index 0000000..08f4330 --- /dev/null +++ b/src/Config/config.js @@ -0,0 +1,16 @@ +import React from 'react'; + +function getConfig() { + return [ + + { + "dash_url": 'https://dashboard.wrenchboard.com', + "android_app": 'https://play.google.com/store/apps/details?id=com.wrenchboard.users', + "apple_app": 'https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8', + "post_date": "2018-06-25T18:54:22.000Z", + } + ]; + +} + +export default getConfig; \ No newline at end of file diff --git a/src/components/Service/ServiceSideMenu.js b/src/components/Service/ServiceSideMenu.js index a070405..1d7c356 100644 --- a/src/components/Service/ServiceSideMenu.js +++ b/src/components/Service/ServiceSideMenu.js @@ -1,6 +1,8 @@ import React from 'react'; +import getConfig from './../../Config/config' function ServiceSideMenu() { + var site = getConfig()[0]; return ( <>
@@ -47,12 +49,12 @@ function ServiceSideMenu() {
  • - + Download for iOS
  • - + Download for Android From 8d8e1b4d9863bc72123e2fef9deb4f0c1d63531c Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sun, 16 Jan 2022 15:03:11 -0500 Subject: [PATCH 2/3] Config update --- src/Config/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Config/config.js b/src/Config/config.js index 08f4330..63aeb4f 100644 --- a/src/Config/config.js +++ b/src/Config/config.js @@ -7,7 +7,9 @@ function getConfig() { "dash_url": 'https://dashboard.wrenchboard.com', "android_app": 'https://play.google.com/store/apps/details?id=com.wrenchboard.users', "apple_app": 'https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8', - "post_date": "2018-06-25T18:54:22.000Z", + "facebook_link": 'https://www.facebook.com/wrenchboard', + "twitter_link" : 'https://twitter.com/wrenchboard/', + "dummy": "2018-06-25T18:54:22.000Z", } ]; From a167173860dd0ac1cab84ae0f8e0354e5d282828 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sun, 16 Jan 2022 15:13:13 -0500 Subject: [PATCH 3/3] Config settings in footer --- src/Config/config.js | 1 + src/components/HomeOne/FooterHomeOne.js | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Config/config.js b/src/Config/config.js index 63aeb4f..9484339 100644 --- a/src/Config/config.js +++ b/src/Config/config.js @@ -9,6 +9,7 @@ function getConfig() { "apple_app": 'https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8', "facebook_link": 'https://www.facebook.com/wrenchboard', "twitter_link" : 'https://twitter.com/wrenchboard/', + "support_email" : 'support@wrenchboard.com', "dummy": "2018-06-25T18:54:22.000Z", } ]; diff --git a/src/components/HomeOne/FooterHomeOne.js b/src/components/HomeOne/FooterHomeOne.js index 1d08dab..49fae2e 100644 --- a/src/components/HomeOne/FooterHomeOne.js +++ b/src/components/HomeOne/FooterHomeOne.js @@ -1,8 +1,11 @@ import React from 'react'; import { Link } from 'react-router-dom'; import logo from '../../assets/images/wrenchboard.png'; +import getConfig from './../../Config/config' function FooterHomeOne({ className }) { + var site = getConfig()[0]; + return ( <>
    @@ -18,18 +21,18 @@ function FooterHomeOne({ className }) {

    {`It is simple. You can do something that somebody is ready to pay you for. WrenchBoard is the platform to connect you with earning opportunities. `}

    - + Read More