|
|
|
@ -75,11 +75,11 @@ function SideMenu({
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
id="sideMenu"
|
|
|
|
|
id="side-menu"
|
|
|
|
|
style={{
|
|
|
|
|
width: width + "%",
|
|
|
|
|
}}>
|
|
|
|
|
<div id="sideMenuContent">
|
|
|
|
|
<div id="side-menu-content">
|
|
|
|
|
<Team teams={teams} />
|
|
|
|
|
<Tactic lastTactics={lastTactics} />
|
|
|
|
|
</div>
|
|
|
|
@ -108,7 +108,7 @@ function PersonalSpace({
|
|
|
|
|
|
|
|
|
|
function TitlePersonalSpace() {
|
|
|
|
|
return (
|
|
|
|
|
<div id="titlePersonalSpace">
|
|
|
|
|
<div id="title-personal-space">
|
|
|
|
|
<h2>Espace Personnel</h2>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
@ -168,7 +168,7 @@ function BodyPersonalSpace({ allTactics }: { allTactics: Tactic[] }) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div id="bodyPersonalSpace">
|
|
|
|
|
<div id="body-personal-space">
|
|
|
|
|
<table>
|
|
|
|
|
<tbody key="tbody">{data}</tbody>
|
|
|
|
|
</table>
|
|
|
|
@ -187,7 +187,7 @@ function Team({ teams }: { teams: Team[] }) {
|
|
|
|
|
))
|
|
|
|
|
return (
|
|
|
|
|
<div id="teams">
|
|
|
|
|
<div className="titreSideMenu">
|
|
|
|
|
<div className="titre-side-menu">
|
|
|
|
|
<h2 className="title">Mes équipes</h2>
|
|
|
|
|
<button
|
|
|
|
|
className="new"
|
|
|
|
@ -203,11 +203,11 @@ function Team({ teams }: { teams: Team[] }) {
|
|
|
|
|
function Tactic({ lastTactics }: { lastTactics: Tactic[] }) {
|
|
|
|
|
return (
|
|
|
|
|
<div id="tactic">
|
|
|
|
|
<div className="titreSideMenu">
|
|
|
|
|
<div className="titre-side-menu">
|
|
|
|
|
<h2 className="title">Mes dernières stratégies</h2>
|
|
|
|
|
<button
|
|
|
|
|
className="new"
|
|
|
|
|
id="createTactic"
|
|
|
|
|
id="create-tactic"
|
|
|
|
|
onClick={() => (location.pathname = "/tactic/new")}>
|
|
|
|
|
+
|
|
|
|
|
</button>
|
|
|
|
@ -221,12 +221,12 @@ function SetButtonTactic({ tactics }: { tactics: Tactic[] }) {
|
|
|
|
|
const lastTactics = tactics.map((tactic) => (
|
|
|
|
|
<ButtonLastTactic tactic={tactic} />
|
|
|
|
|
))
|
|
|
|
|
return <div className="SetButton">{lastTactics}</div>
|
|
|
|
|
return <div className="set-button">{lastTactics}</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function SetButtonTeam({ teams }: { teams: Team[] }) {
|
|
|
|
|
const listTeam = teams.map((teams) => <ButtonTeam team={teams} />)
|
|
|
|
|
return <div className="SetButton">{listTeam}</div>
|
|
|
|
|
return <div className="set-button">{listTeam}</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ButtonTeam({ team }: { team: Team }) {
|
|
|
|
@ -234,8 +234,8 @@ function ButtonTeam({ team }: { team: Team }) {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
id={"ButtonTeam" + team.id}
|
|
|
|
|
className="buttonSideMenu data"
|
|
|
|
|
id={"button-team" + team.id}
|
|
|
|
|
className="button-side-menu data"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
location.pathname = "/team/" + team.id
|
|
|
|
|
}}>
|
|
|
|
@ -249,8 +249,8 @@ function ButtonLastTactic({ tactic }: { tactic: Tactic }) {
|
|
|
|
|
const name = troncName(tactic.name, 20)
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
id={"Button" + tactic.id}
|
|
|
|
|
className="buttonSideMenu data"
|
|
|
|
|
id={"button" + tactic.id}
|
|
|
|
|
className="button-side-menu data"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
location.pathname = "/tactic/" + tactic.id + "/edit"
|
|
|
|
|
}}>
|
|
|
|
|