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} -
  • + )}
    );