mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
cahnged design drawer
improved map drawing tool
This commit is contained in:
@@ -12,7 +12,16 @@ const reorder = (list, startIndex, endIndex) => {
|
||||
};
|
||||
|
||||
function TeamListItem({ team, index, onSelected, itemSelected }) {
|
||||
const classNames = 'w-full p-3 my-3 shadow ' + (itemSelected ? "bg-blue-400" : "bg-gray-100");
|
||||
let bgColor;
|
||||
if(itemSelected) {
|
||||
bgColor = "bg-blue-400";
|
||||
}else if(team.captured) {
|
||||
bgColor = "bg-red-400";
|
||||
}
|
||||
else {
|
||||
bgColor = "bg-gray-100";
|
||||
}
|
||||
const classNames = 'w-full p-3 my-3 shadow ' + (bgColor);
|
||||
return (
|
||||
<Draggable draggableId={team.id.toString()} index={index} onClick={() => onSelected(team.id)}>
|
||||
{provided => (
|
||||
|
||||
Reference in New Issue
Block a user