From d657813b31e6497e9f2692cf0525036f82c183c1 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Mon, 2 May 2022 15:20:11 +0430 Subject: [PATCH] reza fixed blog --- src/screens/Blog/index.js | 6 ++---- src/screens/Blogs/index.js | 5 +++-- src/screens/Home/components/MyBooks.js | 11 +++++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/screens/Blog/index.js b/src/screens/Blog/index.js index e6b5ca4..12695e9 100644 --- a/src/screens/Blog/index.js +++ b/src/screens/Blog/index.js @@ -17,7 +17,6 @@ import { LinearGradient } from "expo-linear-gradient"; import HTMLView from "react-native-htmlview"; //components -import Hashtags from "../Blogs/layouts/Hashtags"; import Header from "../Blogs/layouts/Header"; import New from "../Blogs/layouts/New"; import Navbar from "../../components/Navbar"; @@ -76,7 +75,6 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { style={[styles.container, tw("flex")]} > - { stylesheet={{ p: { color: - theme === "bold" + theme === "light" ? Colors.theme1.gray20 : Colors.theme1.grayF9, textAlign: "right", @@ -223,7 +221,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { horizontal={true} inverted={true} style={[tw("flex flex-row mt-3 pb-3")]} - data={blogs} + data={blogs.filter((blog) => blog.id !== route.params.id)} renderItem={({ item }) => } keyExtractor={(item, index) => { return item.id; diff --git a/src/screens/Blogs/index.js b/src/screens/Blogs/index.js index ab32a63..ee13895 100644 --- a/src/screens/Blogs/index.js +++ b/src/screens/Blogs/index.js @@ -15,7 +15,7 @@ import { blog } from "../../redux/actions"; //components import Navbar from "../../components/Navbar"; import Drawer from "../../components/Drawer"; -import Hashtags from "./layouts/Hashtags"; +// import Hashtags from "./layouts/Hashtags"; import Header from "./layouts/Header"; import Single from "./layouts/Single"; import New from "./layouts/New"; @@ -60,7 +60,7 @@ function Blogs({ getList, blogs }) { contentContainerStyle={styles.contentContainerStyle} style={[styles.container, tw("flex px-4")]} > - + {/* */}
book.condition >= 2).length ? ( کتابهای من - +