Config added

This commit is contained in:
dev-chiefworks
2022-01-16 14:57:41 -05:00
parent 11082cecac
commit 09e40ae99d
2 changed files with 20 additions and 2 deletions
+16
View File
@@ -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;
+4 -2
View File
@@ -1,6 +1,8 @@
import React from 'react';
import getConfig from './../../Config/config'
function ServiceSideMenu() {
var site = getConfig()[0];
return (
<>
<div className="service-details-sidebar mr-50">
@@ -47,12 +49,12 @@ function ServiceSideMenu() {
</li>
<li>
<a href="#">
<a href={site.apple_app}>
<i className="fab fa-apple" /> Download for iOS
</a>
</li>
<li>
<a className="item-2" href="#">
<a className="item-2" href={site.android_app}>
<i className="fab fa-google-play" /> Download for
Android
</a>