move stuff for main
This commit is contained in:
@@ -28,7 +28,7 @@ function GamePanel(props) {
|
||||
if (showLog) {
|
||||
const logs = game.log.map((l, i) => (<div key={i}>{l}</div>)).reverse();
|
||||
return (
|
||||
<section className="game">
|
||||
<main className="game">
|
||||
<div className="instance-hdr">
|
||||
<button
|
||||
className="game-btn instance-btn instance-ui-btn left"
|
||||
@@ -42,7 +42,7 @@ function GamePanel(props) {
|
||||
<div className="logs">
|
||||
{logs}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -165,12 +165,12 @@ function GamePanel(props) {
|
||||
const gameClasses = `game ${resolution ? 'resolving': ''}`;
|
||||
|
||||
return (
|
||||
<section className={gameClasses} onClick={() => setActiveCryp(null)} >
|
||||
<main className={gameClasses} onClick={() => setActiveCryp(null)} >
|
||||
{header}
|
||||
{timer}
|
||||
{otherTeams.map(OpponentTeam)}
|
||||
{PlayerTeam(playerTeam, setActiveSkill)}
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ function InstanceComponent(args) {
|
||||
);
|
||||
|
||||
return (
|
||||
<section className="instance" >
|
||||
<main className="instance" >
|
||||
<div className="top">
|
||||
{actionBtn}
|
||||
{timer}
|
||||
@@ -57,7 +57,7 @@ function InstanceComponent(args) {
|
||||
<InfoContainer />
|
||||
<EquipmentContainer />
|
||||
<InstanceCrypsContainer />
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,15 +19,9 @@ function renderBody(props) {
|
||||
|
||||
if (!account) {
|
||||
return (
|
||||
<section>
|
||||
<main>
|
||||
<LoginContainer />
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
if (game) {
|
||||
return (
|
||||
<GameContainer />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -37,6 +31,12 @@ function renderBody(props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (game) {
|
||||
return (
|
||||
<GameContainer />
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<MenuContainer />
|
||||
);
|
||||
@@ -145,9 +145,9 @@ function Menu(args) {
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="menu">
|
||||
<main className="menu">
|
||||
{instanceList()}
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user