From df4e25db4caf7dbbb62b630a5388d210c72b3ba8 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Mon, 16 May 2022 13:42:22 +0430 Subject: [PATCH] reza fixed somethin --- src/screens/Address/index.js | 4 ++-- src/screens/DeliveryForm/Address/index.js | 6 +++--- src/screens/DeliveryForm/TransportDate/index.js | 4 ++-- src/screens/DeliveryForm/TransportMethod/index.js | 4 ++-- src/screens/Product/components/Book.js | 10 +++++----- src/screens/Product/components/Comments.js | 12 +++++------- src/screens/Product/components/LinkBox.js | 2 +- .../Profile/components/ProfileAddress/index.js | 8 ++++---- 8 files changed, 24 insertions(+), 26 deletions(-) diff --git a/src/screens/Address/index.js b/src/screens/Address/index.js index bd8603d..941bd75 100644 --- a/src/screens/Address/index.js +++ b/src/screens/Address/index.js @@ -348,7 +348,7 @@ const Address = ({ diff --git a/src/screens/DeliveryForm/TransportDate/index.js b/src/screens/DeliveryForm/TransportDate/index.js index 3d35e2a..a59b8b9 100644 --- a/src/screens/DeliveryForm/TransportDate/index.js +++ b/src/screens/DeliveryForm/TransportDate/index.js @@ -40,7 +40,7 @@ const TransportDate = ({ transportDate, mobile, theme }) => { { @@ -208,7 +208,7 @@ function Book({ color: theme === "light" ? Colors.theme1.green79 : Colors.theme1.white, textAlign: "center", - fontSize: mobile ? fontSize.tiny : fontSize.lg, + fontSize: mobile ? fontSize.tiny : fontSize.base, fontFamily: "regular", }} > @@ -229,7 +229,7 @@ function Book({ color: theme === "light" ? Colors.theme1.green79 : Colors.theme1.white, textAlign: "center", - fontSize: mobile ? fontSize.tiny : fontSize.lg, + fontSize: mobile ? fontSize.tiny : fontSize.base, fontFamily: "regular", }} > @@ -258,7 +258,7 @@ function Book({ color: theme === "light" ? Colors.theme1.green79 : Colors.theme1.white, textAlign: "center", - fontSize: mobile ? fontSize.tiny : fontSize.lg, + fontSize: mobile ? fontSize.tiny : fontSize.base, fontFamily: "regular", }} > diff --git a/src/screens/Product/components/Comments.js b/src/screens/Product/components/Comments.js index ad0a2bf..907deca 100644 --- a/src/screens/Product/components/Comments.js +++ b/src/screens/Product/components/Comments.js @@ -32,6 +32,7 @@ function Commnets({ getFullList, orderFullList, theme, + mobile, }) { React.useEffect(() => { if (!orderFullList?.length) { @@ -50,7 +51,7 @@ function Commnets({ renderItem={({ item }) => } keyExtractor={(item) => item?.id} /> - + ); } @@ -124,7 +125,7 @@ const Comment = ({ comment, theme }) => { ); }; -const AddComment = ({ addComment, productId, theme, ...props }) => { +const AddComment = ({ addComment, productId, theme, mobile, ...props }) => { const [commentForm, setCommentForm] = React.useState({ title: "", text: "", @@ -132,16 +133,12 @@ const AddComment = ({ addComment, productId, theme, ...props }) => { productId: null, }); - const colorScheme = React.useMemo(() => { - return Appearance.getColorScheme(); - }, [props.useless]); - return ( - + { const mapStateToProps = (state) => ({ orderFullList: state.userFactor.fullList, theme: state.publicApi.theme, + mobile: state.publicApi.mobile, }); const mapDispatchToProps = { diff --git a/src/screens/Product/components/LinkBox.js b/src/screens/Product/components/LinkBox.js index e0eb291..c453c9c 100644 --- a/src/screens/Product/components/LinkBox.js +++ b/src/screens/Product/components/LinkBox.js @@ -30,7 +30,7 @@ function Description({ title, onPress, mobile, theme }) {