Dummy, à vous de jouer !
Il y a {players.length} joueurs
{indices[1].ToString(locale)}
{indices[2].ToString(locale)}
import React, { useState } from 'react'; import Switch from "react-switch"; /* Style */ import "./InGame.css" import {useTheme} from '../Style/ThemeContext' /* Component */ import GraphContainer from '../Components/GraphContainer'; import ChoiceBar from '../Components/ChoiceBar'; import ButtonImgNav from '../Components/ButtonImgNav'; import PersonStatus from '../Components/PersonStatus'; import PlayerList from '../Components/PlayerList'; /* Icon */ import Leave from "../res/icon/leave.png"; import Param from "../res/icon/param.png"; import Replay from "../res/icon/replay.png"; import Info from "../res/icon/infoGreen.png"; import Check from "../res/icon/checkboxGreen.png"; import Alpha from "../res/GreekLetters/alphaW.png"; /* nav */ import { Link } from 'react-router-dom'; /* Boostrap */ import Button from 'react-bootstrap/Button'; import Offcanvas from 'react-bootstrap/Offcanvas'; /* Model */ import Stub from '../source/Stub'; import { HiLanguage } from 'react-icons/hi2'; import { Nav, NavDropdown } from 'react-bootstrap'; import { FormattedMessage } from 'react-intl'; //@ts-ignore const InGame = ({locale, changeLocale}) => { const [showChoiceBar, setShowChoiceBar] = useState(false); const theme = useTheme(); const handleNodeClick = (shouldShowChoiceBar: boolean) => { setShowChoiceBar(shouldShowChoiceBar); }; /* offcanvas */ //? faire une fonction pour close et show en fonction de l'etat du canva ? //? comment faire pour eviter la recopie de tout le code a chaque canvas boostrap ? const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); const [showP, setShowP] = useState(false); const handleCloseP = () => setShowP(false); const handleShowP = () => setShowP(true); const [showS, setShowS] = useState(false); const handleCloseS = () => setShowS(false); const handleShowS = () => setShowS(true); const handleChange = () => { if (show){ handleClose() } else { handleShow() } }; const handleChangeP = () => { if (showP){ handleCloseP() } else { handleShowP() } }; const handleChangeS = () => { if (showS){ handleCloseS() } else { handleShowS() } }; /* Windows open */ //@ts-ignore const openInNewTab = (url) => { //! avec url ==> dangereux window.open(url); }; const [SwitchEnabled, setSwitchEnabled] = useState(false) const indices = Stub.GenerateIndice() return (
Dummy, à vous de jouer !