mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Polygon zones AND circle zones
This commit is contained in:
@@ -2,12 +2,11 @@ import { useEffect, useState } from 'react';
|
||||
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
|
||||
|
||||
export function List({array, children}) {
|
||||
// TODO : change key
|
||||
return (
|
||||
<div className='w-full h-full bg-gray-300 overflow-y-scroll'>
|
||||
<ul className="w-full p-1 pb-0">
|
||||
{array.map((elem, i) => (
|
||||
<li className="w-full" key={elem.id ?? i}>
|
||||
<li className="w-full" key={elem.id}>
|
||||
{children(elem, i)}
|
||||
<div className="w-full h-1"/>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user