mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-08 12:27:53 +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%',
|
height = '100%',
|
||||||
onSceneUpdated,
|
onSceneUpdated,
|
||||||
enableDebugTools = false,
|
enableDebugTools = false,
|
||||||
hideMainMenu = false,
|
|
||||||
editorMode = 'EDITABLE'
|
editorMode = 'EDITABLE'
|
||||||
}: IsoflowProps) => {
|
}: IsoflowProps) => {
|
||||||
const prevInitialScene = useRef<SceneInput>(INITIAL_SCENE);
|
const prevInitialScene = useRef<SceneInput>(INITIAL_SCENE);
|
||||||
|
@ -52,7 +51,7 @@ const App = ({
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
uiActions.setZoom(initialScene?.zoom ?? 1);
|
uiActions.setZoom(initialScene?.zoom ?? 1);
|
||||||
uiActions.setEditorMode(editorMode);
|
uiActions.setEditorMode(editorMode);
|
||||||
}, [initialScene?.zoom, editorMode, sceneActions, uiActions, hideMainMenu]);
|
}, [initialScene?.zoom, editorMode, sceneActions, uiActions]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!initialScene || prevInitialScene.current === initialScene) return;
|
if (!initialScene || prevInitialScene.current === initialScene) return;
|
||||||
|
|
|
@ -15,7 +15,6 @@ const initialState = () => {
|
||||||
mode: getStartingMode('EXPLORABLE_READONLY'),
|
mode: getStartingMode('EXPLORABLE_READONLY'),
|
||||||
iconCategoriesState: [],
|
iconCategoriesState: [],
|
||||||
disableInteractions: false,
|
disableInteractions: false,
|
||||||
hideMainMenu: false,
|
|
||||||
isMainMenuOpen: false,
|
isMainMenuOpen: false,
|
||||||
mouse: {
|
mouse: {
|
||||||
position: { screen: CoordsUtils.zero(), tile: CoordsUtils.zero() },
|
position: { screen: CoordsUtils.zero(), tile: CoordsUtils.zero() },
|
||||||
|
|
Loading…
Reference in a new issue