| | |
| | | const MapDrawer = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const { curSprite } = props; |
| | | const { curSprite, curFloor } = props; |
| | | |
| | | const [drawerTitle, setDrawerTitle] = useState(''); |
| | | |
| | | useEffect(() => { |
| | | |
| | | }, [props.curSprite]); |
| | | |
| | | const handleCancel = () => { |
| | | props.onCancel(); |
| | |
| | | return ( |
| | | <> |
| | | <Drawer |
| | | title={drawerTitle} |
| | | open={props.open} |
| | | onClose={handleCancel} |
| | | getContainer={props.refCurr} |
| | | rootStyle={{ position: "absolute" }} |
| | | mask={false} |
| | | width={900} |
| | | width={window.innerWidth * 0.35} |
| | | style={{ |
| | | opacity: 1 |
| | | }} |
| | |
| | | <> |
| | | <ShelfDrawer |
| | | curSprite={curSprite} |
| | | curFloor={curFloor} |
| | | setDrawerTitle={setDrawerTitle} |
| | | /> |
| | | </> |
| | | )} |
| | |
| | | <> |
| | | <ShuttleDrawer |
| | | curSprite={curSprite} |
| | | curFloor={curFloor} |
| | | setDrawerTitle={setDrawerTitle} |
| | | /> |
| | | </> |
| | | )} |