@ -19,7 +19,7 @@ import TestPanel from './TestPanel'; // Dudley's Test Panel
const axios = require ( 'axios' ) ;
const axios = require ( 'axios' ) ;
const BACKEND _URL = 'https://projectdivar.com:4504';
const BACKEND _URL = process . env . REACT _APP _BACKEND _URL || 'https://projectdivar.com:4504'; //You can specify a .env file locally with REACT_APP_BACKEND_URL defining a URL to retrieve data from.
function Col ( p ) {
function Col ( p ) {
return < div className = "con" >
return < div className = "con" >
@ -662,7 +662,7 @@ function App() {
< StatsBox bp = { bp } setBP = { setBP } hp = { hp } setHP = { setHP } pp = { pp } setPP = { setPP } def = { def } setDef = { setDef } weaponUp1 = { weaponUp1 } setWeaponUp1 = { setWeaponUp1 } weaponUp2 = { weaponUp2 } setWeaponUp2 = { setWeaponUp2 } weaponUp3 = { weaponUp3 } setWeaponUp3 = { setWeaponUp3 } damageResist = { damageResist } setDamageResist = { setDamageResist } / >
< StatsBox bp = { bp } setBP = { setBP } hp = { hp } setHP = { setHP } pp = { pp } setPP = { setPP } def = { def } setDef = { setDef } weaponUp1 = { weaponUp1 } setWeaponUp1 = { setWeaponUp1 } weaponUp2 = { weaponUp2 } setWeaponUp2 = { setWeaponUp2 } weaponUp3 = { weaponUp3 } setWeaponUp3 = { setWeaponUp3 } damageResist = { damageResist } setDamageResist = { setDamageResist } / >
< DamageBox criticalHitRate = { criticalHitRate } setCriticalHitRate = { setCriticalHitRate } criticalMultiplier = { criticalMultiplier } setCriticalMultiplier = { setCriticalMultiplier } midRange = { midRange } setMidRange = { setMidRange } critical = { critical } setCritical = { setCritical } effective = { effective } setEffective = { setEffective } / >
< DamageBox criticalHitRate = { criticalHitRate } setCriticalHitRate = { setCriticalHitRate } criticalMultiplier = { criticalMultiplier } setCriticalMultiplier = { setCriticalMultiplier } midRange = { midRange } setMidRange = { setMidRange } critical = { critical } setCritical = { setCritical } effective = { effective } setEffective = { setEffective } / >
< / C o l >
< / C o l >
< PopupWindow modalOpen = { modalOpen } setModalOpen = { setModalOpen } showCloseButton = { false } title = "Modal Title" > Modal content goes here . { process . env . REACT _APP _TEST } < / P o p u p W i n d o w >
< PopupWindow modalOpen = { modalOpen } setModalOpen = { setModalOpen } showCloseButton = { false } title = "Modal Title" > Modal content goes here . { BACKEND _URL } < / P o p u p W i n d o w >
< / d i v >
< / d i v >
< / R o u t e >
< / R o u t e >
< / S w i t c h >
< / S w i t c h >