From 63308a5f4cdd385d4509d57e8d7c04cec939af19 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 31 May 2022 14:54:23 +0430 Subject: [PATCH] update src/components/Accordion/AccordionDesign1/index.js and src/components/Testt/index.js --- .../Accordion/AccordionDesign1/index.js | 53 ------------------- src/components/Testt/index.js | 52 ++++++++++++++---- 2 files changed, 41 insertions(+), 64 deletions(-) diff --git a/src/components/Accordion/AccordionDesign1/index.js b/src/components/Accordion/AccordionDesign1/index.js index 672c0dd..85c2d8b 100644 --- a/src/components/Accordion/AccordionDesign1/index.js +++ b/src/components/Accordion/AccordionDesign1/index.js @@ -85,59 +85,6 @@ const AccordionDesign1 = ({ items, vod }) => { class="w-3 ml-2" /> - {/* child */} - {activeAccordion === item && - item.subItems.map((subItem, i) => ( -
-
- {vod === !true && ( - line - )} - - {i + 1} - -
-
-

{subItem.name}

-
- {vod ? ( - <> -
-

- دقیقه: - {item.min} -

-
- - ) : ( - <> - delete-button - edit-button - - )} -
-
- ))} {provided.placeholder} )} diff --git a/src/components/Testt/index.js b/src/components/Testt/index.js index db4e55a..b45fb73 100644 --- a/src/components/Testt/index.js +++ b/src/components/Testt/index.js @@ -1,6 +1,8 @@ import React, { useState } from "react"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; import "./App.css"; +import CircleInCircle from "../MiniComponents/CircleInCircle"; +import Button from "../ButtonDesign/Button"; const finalSpaceCharacters = [ { @@ -111,7 +113,7 @@ const finalSpaceCharacters = [ }, ]; -function Testt() { +function Testt({ vod }) { const [activeAccordion, setActiveAccordion] = useState(null); const [characters, updateCharacters] = useState(finalSpaceCharacters); @@ -141,17 +143,45 @@ function Testt() { return ( {(provided) => ( -
  • -
    - {`${name} + <> + {/* ! mineeeeeeeeeeeeee */} +
    + {/* parent */} +
    + +

    {title}

    + {vod && ( +
    +

    + دقیقه: + {min} +

    +
    +

    + ویدیو: + {video} +

    +
    + )} + +
    + {provided.placeholder}
    -

    {title}

    - {test} -
  • + )}
    );