diff --git a/.env b/.env
index 56afd7f..3e41646 100644
--- a/.env
+++ b/.env
@@ -6,7 +6,7 @@ REACT_APP_ANDROID_URL="https://play.google.com/store/apps/details?id=com.mermsem
REACT_APP_IOS_URL="https://play.google.com/store/apps/details?id=com.mermsemr.myfit"
-REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
+REACT_APP_APPSITE=" https://mermsemr.com"
#REACT_APP_APPSITE="http://localhost:7012"
# Social Media Links
diff --git a/src/component/Blog/Blog/Main.js b/src/component/Blog/Blog/Main.js
index 43a4623..ba78687 100644
--- a/src/component/Blog/Blog/Main.js
+++ b/src/component/Blog/Blog/Main.js
@@ -42,6 +42,7 @@ const Main = ({ brdcum, bgimg }) => {
}
}
};
+
return (
<>
diff --git a/src/component/Blog/BlogSingle/Main.js b/src/component/Blog/BlogSingle/Main.js
index 0d1503f..b2be0a5 100644
--- a/src/component/Blog/BlogSingle/Main.js
+++ b/src/component/Blog/BlogSingle/Main.js
@@ -16,7 +16,7 @@ const Main = ({ brdcum }) => {
let api_call = new SiteService();
useEffect(() => {
getBlogData();
- }, [blogData]);
+ }, []);
const getBlogData = async () => {
/*
@@ -185,7 +185,8 @@ const Main = ({ brdcum }) => {
dangerouslySetInnerHTML={{
__html: item.post_content.substring(0, 100) + " . . .",
}}>
- READ MORE
+ READ MORE
+ {/* READ MORE */}
diff --git a/src/component/HomeMain/Story/Main.js b/src/component/HomeMain/Story/Main.js
index 6767e66..6a1b5bf 100644
--- a/src/component/HomeMain/Story/Main.js
+++ b/src/component/HomeMain/Story/Main.js
@@ -1,20 +1,64 @@
-import { Link } from 'react-router-dom'
-import React from 'react'
-import story1 from '../../../assets/images/story01.png'
-import story2 from '../../../assets/images/story02.png'
-import story3 from '../../../assets/images/story03.png'
+import React, { useEffect, useState } from "react";
+import { Link } from 'react-router-dom';
+// import story1 from '../../../assets/images/story01.png';
+// import story2 from '../../../assets/images/story02.png';
+// import story3 from '../../../assets/images/story03.png';
+import SiteService from "../../../vendors/service/siteService";
+
const Main = () => {
+ const [blogData, setBlogData] = useState([]);
+
+ let api = new SiteService();
+ useEffect(() => {
+ getBlogData();
+ }, []);
+
+ const getBlogData = async () => {
+ try {
+ let res = await api.blogData();
+ setBlogData(res.data);
+
+ } catch (error) {
+ console.log("Error from blog data ", error);
+ }
+ };
+
return (
<>
Lorem Ipsum is simply dummy text of the printing and typese tting Read latest story
-
indus orem Ipsum has beenthe standard dummy.
+ {new Date(item.post_date).toDateString()}
+
{item.post_title}
+
+ READ MORE
+
@@ -53,7 +97,7 @@ const Main = () => {
READ MORE