mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Add remove beaker button to sleepers with no occupants TRAVIS YOU FUCK
This commit is contained in:
@@ -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
Reference in New Issue
Block a user