mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-08 04:18:29 +00:00
fix: removes unused prop
This commit is contained in:
parent
b552bd7f12
commit
d7ddb69567
2 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,6 @@ const App = ({
|
|||
height = '100%',
|
||||
onSceneUpdated,
|
||||
enableDebugTools = false,
|
||||
hideMainMenu = false,
|
||||
editorMode = 'EDITABLE'
|
||||
}: IsoflowProps) => {
|
||||
const prevInitialScene = useRef<SceneInput>(INITIAL_SCENE);
|
||||
|
@ -52,7 +51,7 @@ const App = ({
|
|||
useEffect(() => {
|
||||
uiActions.setZoom(initialScene?.zoom ?? 1);
|
||||
uiActions.setEditorMode(editorMode);
|
||||
}, [initialScene?.zoom, editorMode, sceneActions, uiActions, hideMainMenu]);
|
||||
}, [initialScene?.zoom, editorMode, sceneActions, uiActions]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!initialScene || prevInitialScene.current === initialScene) return;
|
||||
|
|
|
@ -15,7 +15,6 @@ const initialState = () => {
|
|||
mode: getStartingMode('EXPLORABLE_READONLY'),
|
||||
iconCategoriesState: [],
|
||||
disableInteractions: false,
|
||||
hideMainMenu: false,
|
||||
isMainMenuOpen: false,
|
||||
mouse: {
|
||||
position: { screen: CoordsUtils.zero(), tile: CoordsUtils.zero() },
|
||||
|
|
Loading…
Reference in a new issue