From 7f1f7bc3bd0b3567fd9a806e64c0aacc1cbc0ae1 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 30 May 2022 13:12:10 +0430 Subject: [PATCH] update src/components/Accordion/AccordionDesign1/index.js --- public/images/accordion+.svg | 3 ++ public/images/accordion-.svg | 3 ++ public/images/accordionGroup2723.svg | 13 +++++ public/images/accordionGroup2724.svg | 15 ++++++ public/images/accordionGroup2725.svg | 6 +++ .../Accordion/AccordionDesign1/index.js | 49 ++++++++++++++++--- 6 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 public/images/accordion+.svg create mode 100644 public/images/accordion-.svg create mode 100644 public/images/accordionGroup2723.svg create mode 100644 public/images/accordionGroup2724.svg create mode 100644 public/images/accordionGroup2725.svg diff --git a/public/images/accordion+.svg b/public/images/accordion+.svg new file mode 100644 index 0000000..7c365c7 --- /dev/null +++ b/public/images/accordion+.svg @@ -0,0 +1,3 @@ + + + + diff --git a/public/images/accordion-.svg b/public/images/accordion-.svg new file mode 100644 index 0000000..f8a9171 --- /dev/null +++ b/public/images/accordion-.svg @@ -0,0 +1,3 @@ + + - + diff --git a/public/images/accordionGroup2723.svg b/public/images/accordionGroup2723.svg new file mode 100644 index 0000000..e565c15 --- /dev/null +++ b/public/images/accordionGroup2723.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/public/images/accordionGroup2724.svg b/public/images/accordionGroup2724.svg new file mode 100644 index 0000000..73bed26 --- /dev/null +++ b/public/images/accordionGroup2724.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/public/images/accordionGroup2725.svg b/public/images/accordionGroup2725.svg new file mode 100644 index 0000000..1c3bf85 --- /dev/null +++ b/public/images/accordionGroup2725.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/components/Accordion/AccordionDesign1/index.js b/src/components/Accordion/AccordionDesign1/index.js index 858c464..af97974 100644 --- a/src/components/Accordion/AccordionDesign1/index.js +++ b/src/components/Accordion/AccordionDesign1/index.js @@ -3,21 +3,54 @@ import CircleInCircle from "../../MiniComponents/CircleInCircle"; const AccordionDesign1 = ({ items }) => { return ( -
+
{/* header */} {items.map((item, index) => ( -
- -

{item.title}

{" "} +
+
+ +

{item.title}

+ +
+ {item.subItems.map((subItem, i) => ( +
+
+ line + 1 +
+
+

{subItem.name}

+
+ delete-button + edit-button +
+
+ ))}
))}
); }; - +// accordionGroup2723.svg +// accordionGroup2724.svg +// accordionGroup2725.svg +// accordion-.svg +// accordion+.svg export default AccordionDesign1; AccordionDesign1.defaultProps = {