diff --git a/src/Isoflow.tsx b/src/Isoflow.tsx index 09b00a2..b800590 100644 --- a/src/Isoflow.tsx +++ b/src/Isoflow.tsx @@ -29,7 +29,6 @@ const App = ({ height = '100%', onSceneUpdated, enableDebugTools = false, - hideMainMenu = false, editorMode = 'EDITABLE' }: IsoflowProps) => { const prevInitialScene = useRef(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; diff --git a/src/stores/uiStateStore.tsx b/src/stores/uiStateStore.tsx index c9058fc..2088ec4 100644 --- a/src/stores/uiStateStore.tsx +++ b/src/stores/uiStateStore.tsx @@ -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() },