diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx
index f4aafd3e..664a1c80 100644
--- a/client/src/components/info.component.jsx
+++ b/client/src/components/info.component.jsx
@@ -2,14 +2,13 @@ const preact = require('preact');
const range = require('lodash/range');
const reactStringReplace = require('react-string-replace');
-const { Component } = require('preact');
const { INFO } = require('./../constants');
const { convertItem, removeTier } = require('../utils');
const { tutorialStage } = require('../tutorial.utils');
const shapes = require('./shapes');
-class InfoComponent extends Component {
+class InfoComponent extends preact.Component {
shouldComponentUpdate(newProps) {
if (newProps.tutorial !== this.props.tutorial) return true;
if (newProps.tutorial) return false; // We don't care about info during tutorial
@@ -19,33 +18,24 @@ class InfoComponent extends Component {
render(args) {
const {
- ws,
- itemInfo,
- player,
- instance,
+ // Variables that will change
info,
tutorial,
- clearTutorial,
+
+ // Static
+ player, // Only used for colour calcs which will be update if info changes
+ ws,
+ itemInfo,
+ instance, // Only used for instance id
+ // functions
+ setInfo,
+ setTutorialNull,
} = args;
function Info() {
- if (tutorial) return tutorialStage(tutorial, ws, clearTutorial, instance);
+ if (tutorial) return tutorialStage(tutorial, ws, setTutorialNull, instance);
+ if (!info) return false;
- if (!info) {
- return (
-
-
VBOX phase
-
Strengthen and specialise your constructs by equipping items to them.
-
Double click to purchase items in the VBOX and move them to your INVENTORY.
-
- Combine a SKILL or SPEC with 2 COLOURS to create an item.
- Combine 3 of the same item to upgrade it.
- Click an item and then click a construct to equip that item to it.
-