mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2026-04-23 08:31:16 -04:00
fix: removes unused prop
This commit is contained in:
@@ -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() },
|
||||
|
||||
Reference in New Issue
Block a user