| | |
| | | const { curSprite, curFloor } = props; |
| | | |
| | | const [drawerTitle, setDrawerTitle] = useState(''); |
| | | const [drawerWidth, setDrawerWidth] = useState(() => { |
| | | return window.innerWidth * 0.35; |
| | | }) |
| | | |
| | | useEffect(() => { |
| | | }, [props.curSprite]); |
| | |
| | | getContainer={props.refCurr} |
| | | rootStyle={{ position: "absolute" }} |
| | | mask={false} |
| | | width={window.innerWidth * 0.35} |
| | | width={drawerWidth} |
| | | style={{ |
| | | opacity: 1 |
| | | }} |
| | |
| | | curSprite={curSprite} |
| | | curFloor={curFloor} |
| | | setDrawerTitle={setDrawerTitle} |
| | | setDrawerWidth={setDrawerWidth} |
| | | /> |
| | | </> |
| | | )} |
| | |
| | | curSprite={curSprite} |
| | | curFloor={curFloor} |
| | | setDrawerTitle={setDrawerTitle} |
| | | setDrawerWidth={setDrawerWidth} |
| | | /> |
| | | </> |
| | | )} |