From 313d66d50b205443bdc410e5375f39d1551c108d Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Tue, 10 May 2022 11:16:47 +0430 Subject: [PATCH] update src/components/Blogss/design1/index.js --- src/components/Blogss/design1/index.js | 10 +++++++--- src/components/RelativeCircle/index.js | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 src/components/RelativeCircle/index.js diff --git a/src/components/Blogss/design1/index.js b/src/components/Blogss/design1/index.js index 4fca609..cba9423 100644 --- a/src/components/Blogss/design1/index.js +++ b/src/components/Blogss/design1/index.js @@ -1,3 +1,5 @@ +import RelativeCircle from "../../RelativeCircle"; + const BlogDesign1 = ({ blogTitle, blogExcerpt, @@ -39,9 +41,11 @@ const BlogDesign1 = ({

- - {commentNum} - +
)} diff --git a/src/components/RelativeCircle/index.js b/src/components/RelativeCircle/index.js new file mode 100644 index 0000000..a488b92 --- /dev/null +++ b/src/components/RelativeCircle/index.js @@ -0,0 +1,18 @@ +import React from "react"; + +const RelativeCircle = ({ commentNum, className }) => { + return ( + + {commentNum} + + ); +}; + +export default RelativeCircle; + +RelativeCircle.defaultProps = { + commentNum: "26", + className: "", +};