Oops, also include the server status
This commit is contained in:
parent
6b52a36b31
commit
57457f0e9c
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ interface Stats {
|
||||||
const ServerDetailsBlock = () => {
|
const ServerDetailsBlock = () => {
|
||||||
const [ stats, setStats ] = useState<Stats>({ memory: 0, cpu: 0, disk: 0 });
|
const [ stats, setStats ] = useState<Stats>({ memory: 0, cpu: 0, disk: 0 });
|
||||||
|
|
||||||
|
const status = ServerContext.useStoreState(state => state.status.value);
|
||||||
const connected = ServerContext.useStoreState(state => state.socket.connected);
|
const connected = ServerContext.useStoreState(state => state.socket.connected);
|
||||||
const instance = ServerContext.useStoreState(state => state.socket.instance);
|
const instance = ServerContext.useStoreState(state => state.socket.instance);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue