minor changes 🍱

pull/92/head
Pierre Ferreira 1 year ago
parent d761d0706a
commit 148ae1f52f

@ -31,21 +31,28 @@ import ColorEdgesIndice from '../model/Indices/ColorEdgesIndice';
import SportIndice from '../model/Indices/SportIndice'; import SportIndice from '../model/Indices/SportIndice';
import NbEdgesIndice from '../model/Indices/NbEdgesIndice'; import NbEdgesIndice from '../model/Indices/NbEdgesIndice';
import NbSportIndice from '../model/Indices/NbSportIndice'; import NbSportIndice from '../model/Indices/NbSportIndice';
import { useGame } from '../Contexts/GameContext';
function DeducGrid() { function DeducGrid() {
const theme = useTheme(); const theme = useTheme();
//const indices = Stub.GenerateIndice(); //const indices = Stub.GenerateIndice();
const joueurs = [
"bla", const { players } = useGame();
"bli",
"blou"
] console.log(players)
// const joueurs = [
// "bla",
// "bli",
// "blou"
// ]
return ( return (
<div style={{margin:'20px'}}> <div style={{margin:'20px'}}>
<Tabs defaultActiveKey="home" id="uncontrolled-tab-example" className="mb-3"> <Tabs defaultActiveKey="0" id="uncontrolled-tab-example" className="mb-3">
{joueurs.map((joueur, index) => ( {players.map((joueur, index) => (
<Tab key={index} eventKey={index.toString()} title={`${joueur} ${index + 1}`}> <Tab key={index} eventKey={index.toString()} title={`${joueur} ${index + 1}`}>
<div className='deducDiv'> <div className='deducDiv'>
<div className='sectionAccordion'> <div className='sectionAccordion'>

Loading…
Cancel
Save