instance wip

This commit is contained in:
ntr
2019-05-16 16:25:52 +10:00
parent 14165f12cb
commit 4280f52781
5 changed files with 22 additions and 18 deletions
+2 -6
View File
@@ -154,12 +154,8 @@ function Cryp(props) {
// const border = { border: `${thickness(cTotal)}px solid rgba(${colours.red}, ${colours.green}, ${colours.blue}, ${alpha})` };
return (
<div key={cryp.id} className="instance-cryp" onClick={onClick} >
<div className="avatar">
<figure className="img">
{crypAvatar(cryp.name)}
<figcaption>{cryp.name}</figcaption>
</figure>
</div>
{crypAvatar(cryp.name)}
<div className="name" >{cryp.name}</div>
<div className="skills">
{skills}
</div>
-1
View File
@@ -35,7 +35,6 @@ function Nav(args) {
<nav>
<h2>Instances</h2>
<button>list</button>
<button>create</button>
<hr />
{joined}
</nav>
+1 -1
View File
@@ -1,7 +1,7 @@
const toast = require('izitoast');
const cbor = require('borc');
// const testGame = require('./test.game');
const testGame = require('./test.game');
const SOCKET_URL = process.env.NODE_ENV === 'production' ? 'wss://cryps.gg/ws' : 'ws://localhost:40000';