From 01b93f7e03d84e3f41e69b96708bb9b68ea6756c Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 24 May 2019 17:54:14 +1000 Subject: [PATCH] dev hax --- client/src/components/nav.jsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/client/src/components/nav.jsx b/client/src/components/nav.jsx index b6bdfb03..3fabe5f2 100644 --- a/client/src/components/nav.jsx +++ b/client/src/components/nav.jsx @@ -1,9 +1,10 @@ const { connect } = require('react-redux'); const preact = require('preact'); +const { Fragment } = require('preact'); const actions = require('../actions'); -const testGame = require('./../test.game'); -const testInstance = require('./../test.instance'); +const testGame = process.NODE_ENV === 'develop' && require('./../test.game'); +const testInstance = process.NODE_ENV === 'develop' && require('./../test.instance'); const addState = connect( function receiveState(state) { @@ -84,6 +85,14 @@ function Nav(args) { return ; }); + const haxSection = process.NODE_ENV === 'development' + ? ( +

Hax

+ + +
) + : null; + return ( ); }