mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
improved style when overflow
This commit is contained in:
@@ -12,7 +12,7 @@ const reorder = (list, startIndex, endIndex) => {
|
||||
};
|
||||
|
||||
function TeamListItem({ team, index, onSelected, itemSelected }) {
|
||||
const classNames = 'w-full p-3 m-3 shadow ' + (itemSelected ? "bg-blue-400" : "bg-gray-100");
|
||||
const classNames = 'w-full p-3 my-3 shadow ' + (itemSelected ? "bg-blue-400" : "bg-gray-100");
|
||||
return (
|
||||
<Draggable draggableId={team.id.toString()} index={index} onClick={() => onSelected(team.id)}>
|
||||
{provided => (
|
||||
|
||||
16
traque-front/components/admin/teamReady.jsx
Normal file
16
traque-front/components/admin/teamReady.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import useAdmin from "@/hook/useAdmin"
|
||||
|
||||
export function TeamReady() {
|
||||
const {teams} = useAdmin();
|
||||
return <div className='w-max h-full gap-1 bg-gray-200 p-10 flex flex-col text-center shadow-2xl overflow-y-scroll'>
|
||||
<h2 className="text-2xl">Teams ready status</h2>
|
||||
{teams.map((team) => team.ready ? (
|
||||
<div key={team.id} className="p-2 text-white bg-green-500 shadow-md text-xl rounded flex flex-row">
|
||||
<div>{team.name} : Ready</div>
|
||||
</div>) : (
|
||||
<div key={team.id} className="p-2 text-white bg-red-500 shadow-md text-xl rounded flex flex-row">
|
||||
<div>{team.name} : Not ready</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user