Add remove beaker button to sleepers with no occupants TRAVIS YOU FUCK

This commit is contained in:
ShadowLarkens
2020-08-18 07:34:26 -07:00
parent 2c0731bb4b
commit e329f14a22
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -319,6 +319,10 @@ const SleeperChemicals = (props, context) => {
};
const SleeperEmpty = (props, context) => {
const { act, data } = useBackend(context);
const {
isBeakerLoaded,
} = data;
return (
<Section textAlign="center" flexGrow="1">
<Flex height="100%">
@@ -329,6 +333,15 @@ const SleeperEmpty = (props, context) => {
size="5"
/><br />
No occupant detected.
{isBeakerLoaded && (
<Box>
<Button
icon="eject"
content="Remove Beaker"
onClick={() => act('removebeaker')}
/>
</Box>
) || null}
</Flex.Item>
</Flex>
</Section>
File diff suppressed because one or more lines are too long