From 477c4fdd7fa41910bf1eb58b22f7f64004577c62 Mon Sep 17 00:00:00 2001 From: KoboldCommando Date: Thu, 28 Sep 2023 22:28:35 -0400 Subject: [PATCH 1/2] tweaks biogen ui --- .../packages/tgui/interfaces/Biogenerator.tsx | 4 +-- .../packages/tgui/interfaces/BotanySplicer.js | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/Biogenerator.tsx b/tgui/packages/tgui/interfaces/Biogenerator.tsx index 023175609371..5c53d1bbc553 100644 --- a/tgui/packages/tgui/interfaces/Biogenerator.tsx +++ b/tgui/packages/tgui/interfaces/Biogenerator.tsx @@ -56,11 +56,11 @@ export const Biogenerator = (props, context) => { categories.find((category) => category.name === selectedCategory)?.items || []; return ( - + -
+
{ ); }; +export const InsertedBeaker = (props, context) => { + const { act, data } = useBackend(context); + const { held_beaker, working } = data; + const beaker_data = data.beaker || []; + if (!held_beaker) { + return !working && Please insert a beaker.; + } + return ( +
act('eject_beaker')} + content="Eject Beaker" + /> + }> + {!held_beaker && 'No Beaker detected.'} + {!!held_beaker && 'Beaker detected.'} +
+ ); +}; + export const SpliceButton = (props, context) => { const { act, data } = useBackend(context); const { working, seedone, seedtwo } = data; @@ -190,6 +214,7 @@ export const BotanySplicer = (props, context) => { )} + From b226333ae51c3f46f67494deb8cf523540cf8ee4 Mon Sep 17 00:00:00 2001 From: KoboldCommando Date: Thu, 28 Sep 2023 22:33:17 -0400 Subject: [PATCH 2/2] wtf how did this get here --- .../packages/tgui/interfaces/BotanySplicer.js | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/tgui/packages/tgui/interfaces/BotanySplicer.js b/tgui/packages/tgui/interfaces/BotanySplicer.js index 86b7218fa486..d6a6758e38b8 100644 --- a/tgui/packages/tgui/interfaces/BotanySplicer.js +++ b/tgui/packages/tgui/interfaces/BotanySplicer.js @@ -154,30 +154,6 @@ export const InsertedSeedTwo = (props, context) => { ); }; -export const InsertedBeaker = (props, context) => { - const { act, data } = useBackend(context); - const { held_beaker, working } = data; - const beaker_data = data.beaker || []; - if (!held_beaker) { - return !working && Please insert a beaker.; - } - return ( -
act('eject_beaker')} - content="Eject Beaker" - /> - }> - {!held_beaker && 'No Beaker detected.'} - {!!held_beaker && 'Beaker detected.'} -
- ); -}; - export const SpliceButton = (props, context) => { const { act, data } = useBackend(context); const { working, seedone, seedtwo } = data; @@ -214,7 +190,6 @@ export const BotanySplicer = (props, context) => { )} -