From c103b8bbc97acc4869c352a024d5b0c2cc4d1d0d Mon Sep 17 00:00:00 2001 From: Archie Date: Thu, 28 Jan 2021 20:53:02 -0300 Subject: [PATCH] Revert Solar control to pre-floyd material --- .../packages/tgui/interfaces/SolarControl.js | 55 ++++++++++--------- tgui-next/packages/tgui/public/tgui.bundle.js | 4 +- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/tgui-next/packages/tgui/interfaces/SolarControl.js b/tgui-next/packages/tgui/interfaces/SolarControl.js index 1cfb4800..04c382b2 100644 --- a/tgui-next/packages/tgui/interfaces/SolarControl.js +++ b/tgui-next/packages/tgui/interfaces/SolarControl.js @@ -1,17 +1,17 @@ import { toFixed } from 'common/math'; import { Fragment } from 'inferno'; -import { useBackend } from '../backend'; +import { act } from '../byond'; import { Box, Button, Grid, LabeledList, NumberInput, ProgressBar, Section } from '../components'; export const SolarControl = props => { - const { act, data } = useBackend(props); + const { state } = props; + const { config, data } = state; + const { ref } = config; const { generated, - generated_ratio, - azimuth_current, - azimuth_rate, - max_rotation_rate, + angle, tracking_state, + tracking_rate, connected_panels, connected_tracker, } = data; @@ -23,7 +23,7 @@ export const SolarControl = props => {