|
|
@ -1,18 +1,10 @@ |
|
|
|
import React, { useEffect, useState } from "react"; |
|
|
|
import React from "react"; |
|
|
|
import AnimatedProgressBar from "../../AnimatedProgressBar"; |
|
|
|
import AnimatedProgressBar from "../../AnimatedProgressBar"; |
|
|
|
import TitleSubtitle from "../../TitleSubtitle"; |
|
|
|
import TitleSubtitle from "../../TitleSubtitle"; |
|
|
|
|
|
|
|
|
|
|
|
import ellipse from "./Ellipse.svg"; |
|
|
|
import ellipse from "./Ellipse.svg"; |
|
|
|
|
|
|
|
|
|
|
|
const Design2 = ({ title, incomes }) => { |
|
|
|
const Design2 = ({ incomes }) => { |
|
|
|
const [progressFlag, setProgressFlag] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
setProgressFlag(true); |
|
|
|
|
|
|
|
}, 100); |
|
|
|
|
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="bg-white rounded shadow mx-auto py-7 px-4"> |
|
|
|
<div className="bg-white rounded shadow mx-auto py-7 px-4"> |
|
|
|
{/* title */} |
|
|
|
{/* title */} |
|
|
@ -32,8 +24,6 @@ const Design2 = ({ title, incomes }) => { |
|
|
|
export default Design2; |
|
|
|
export default Design2; |
|
|
|
|
|
|
|
|
|
|
|
Design2.defaultProps = { |
|
|
|
Design2.defaultProps = { |
|
|
|
title: "میزان فروش محصولات", |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
incomes: [ |
|
|
|
incomes: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
image: ellipse, |
|
|
|
image: ellipse, |
|
|
|