From 09e40ae99d887419f02fd217f667b863127daf52 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sun, 16 Jan 2022 14:57:41 -0500 Subject: [PATCH] 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