some updtes

master
mahdi 2 years ago
parent dc2fa0fbd5
commit 4895eb1a76
  1. 22
      src/views/Blogs/layouts/Single.js
  2. 2
      src/views/Order/index.js
  3. 5
      src/views/Product/Desktop/ProductOverAll/index.js

@ -2,6 +2,7 @@ import React from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import Avatar from "../../../components/Avatar";
import moment from "jalali-moment";
export const Single = ({ blog, isMobile }) => {
return (
@ -50,11 +51,11 @@ export const Single = ({ blog, isMobile }) => {
<h1 className="lg:text-5xl font-bold leading-6 dark:text-gray-200">
{blog?.title}
</h1>
<p className="text-tiny leading-6 lg:text-tiny text-gray70 dark:text-gray-200 lg:w-4/5 mt-4 lg:mt-6 lg:leading-7">
{window.t(
"پیش از بلعیدن طعمه اش، با آن بازی می کند. با این همه، ما تا آنجا که ممکن است، با علاقه فراوان"
)}
</p>
<div
className="text-tiny leading-6 lg:text-tiny text-gray70 dark:text-gray-200 lg:w-4/5 mt-4 lg:mt-6 lg:leading-7"
dangerouslySetInnerHTML={{ __html: blog?.text }}
/>
</div>
{!isMobile && (
<div className="w-full flex justify-between">
@ -63,7 +64,8 @@ export const Single = ({ blog, isMobile }) => {
{blog?.author.picFileId && (
<img
src={`https://dnvn.ir/api/v1/file/${blog?.author.picFileId}`}
alt=""
alt="author"
className="w-20 rounded"
/>
)}
<div className="flex flex-col py-2 mr-2 justify-center">
@ -78,10 +80,14 @@ export const Single = ({ blog, isMobile }) => {
</div>
<div className="flex flex-col i justify-center items-end">
<span className="lg:text-tiny text-gray1 lg:font-black">
{window.t("زمان مطالعه" + " " + "۳۰ دقیقه")}
{window.t("زمان مطالعه:") +
" " +
`${blog?.duration}` +
" " +
window.t("دقیقه")}
</span>
<span className="mt-3 lg:text-tiny text-gray1 lg:font-black">
{window.t("1400/11/24")}
{moment(blog?.updatedAt).locale("fa").format("YYYY/MM/DD")}
</span>
</div>
</div>

@ -50,7 +50,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions }) {
<div className="w-full flex flex-row justify-between py-0 border-b border-solid border-blueFF1 dark:border-gray45">
<div className="flex flex-row py-4">
<strong className="text-xs lg:text-tiny text-green4F dark:text-white">
{window.t("مشخصات تحویل گیرنده")}:
{window.t("مشخصات تحویل گیرنده:")}
</strong>
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white">
{order.name}

@ -71,7 +71,8 @@ export const ProductOverAll = ({
{physicalProduct?.suggestedCounter ? (
<div className="p-2 border-0 border-solid border-r border-gray-100 text-sm text-gray-400">
بیش از {physicalProduct?.suggestedCounter} نفر امتیاز داده اند
{window.t("بیش از")} {physicalProduct?.suggestedCounter}
{window.t("نفرامتیاز داده اند")}
</div>
) : null}
</div>
@ -170,7 +171,7 @@ export const ProductOverAll = ({
<ProductTab
tabs={[
{
title: "مشخصات",
title: window.t("مشخصات"),
components: (
<Table specifications={physicalProduct?.properties} />
),

Loading…
Cancel
Save