|
|
@ -1,6 +1,8 @@ |
|
|
|
import React, { useState } from "react"; |
|
|
|
import React, { useState } from "react"; |
|
|
|
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; |
|
|
|
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; |
|
|
|
import "./App.css"; |
|
|
|
import "./App.css"; |
|
|
|
|
|
|
|
import CircleInCircle from "../MiniComponents/CircleInCircle"; |
|
|
|
|
|
|
|
import Button from "../ButtonDesign/Button"; |
|
|
|
|
|
|
|
|
|
|
|
const finalSpaceCharacters = [ |
|
|
|
const finalSpaceCharacters = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -111,7 +113,7 @@ const finalSpaceCharacters = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
function Testt() { |
|
|
|
function Testt({ vod }) { |
|
|
|
const [activeAccordion, setActiveAccordion] = useState(null); |
|
|
|
const [activeAccordion, setActiveAccordion] = useState(null); |
|
|
|
const [characters, updateCharacters] = useState(finalSpaceCharacters); |
|
|
|
const [characters, updateCharacters] = useState(finalSpaceCharacters); |
|
|
|
|
|
|
|
|
|
|
@ -141,17 +143,45 @@ function Testt() { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Draggable key={id} draggableId={id} index={index}> |
|
|
|
<Draggable key={id} draggableId={id} index={index}> |
|
|
|
{(provided) => ( |
|
|
|
{(provided) => ( |
|
|
|
<li |
|
|
|
<> |
|
|
|
|
|
|
|
{/* ! mineeeeeeeeeeeeee */} |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="flex flex-col" |
|
|
|
ref={provided.innerRef} |
|
|
|
ref={provided.innerRef} |
|
|
|
{...provided.draggableProps} |
|
|
|
{...provided.draggableProps} |
|
|
|
{...provided.dragHandleProps} |
|
|
|
{...provided.dragHandleProps} |
|
|
|
> |
|
|
|
> |
|
|
|
<div className="characters-thumb"> |
|
|
|
{/* parent */} |
|
|
|
<img src={thumb} alt={`${name} Thumb`} /> |
|
|
|
<div |
|
|
|
|
|
|
|
className={`flex flex-row items-center justify-between px-3 py-4 border-b-2 cursor-pointer`} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<CircleInCircle |
|
|
|
|
|
|
|
parentClassName={"bg-secondary w-0 h- "} |
|
|
|
|
|
|
|
childClassName={false} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<h2 className="flex-1 mr-5 text-sm">{title}</h2> |
|
|
|
|
|
|
|
{vod && ( |
|
|
|
|
|
|
|
<div className="flex flex-row items-center ml-5 "> |
|
|
|
|
|
|
|
<p className="text-xs"> |
|
|
|
|
|
|
|
دقیقه: |
|
|
|
|
|
|
|
<span>{min}</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<div className="w-0.5 h-4 mx-2 bg-surfaceBorder"></div> |
|
|
|
|
|
|
|
<p className="text-xs"> |
|
|
|
|
|
|
|
ویدیو: |
|
|
|
|
|
|
|
<span>{video}</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
<img |
|
|
|
|
|
|
|
src={"images/accordion-.svg"} |
|
|
|
|
|
|
|
alt="" |
|
|
|
|
|
|
|
class="w-3 ml-2" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{provided.placeholder} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p>{title}</p> |
|
|
|
</> |
|
|
|
<span className="p-10 bg-red-600">{test}</span> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
)} |
|
|
|
)} |
|
|
|
</Draggable> |
|
|
|
</Draggable> |
|
|
|
); |
|
|
|
); |
|
|
|