forked from MapComplete/MapComplete
		
	Use GuiState type instead of fully typed states
This commit is contained in:
		
							parent
							
								
									297aabf2b7
								
							
						
					
					
						commit
						8c35bfd67b
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		| 
						 | 
					@ -14,17 +14,10 @@ import FeatureInfoBox from "../Popup/FeatureInfoBox"
 | 
				
			||||||
import CopyrightPanel from "./CopyrightPanel"
 | 
					import CopyrightPanel from "./CopyrightPanel"
 | 
				
			||||||
import FeaturePipelineState from "../../Logic/State/FeaturePipelineState"
 | 
					import FeaturePipelineState from "../../Logic/State/FeaturePipelineState"
 | 
				
			||||||
import Hotkeys from "../Base/Hotkeys"
 | 
					import Hotkeys from "../Base/Hotkeys"
 | 
				
			||||||
 | 
					import { DefaultGuiState } from "../DefaultGuiState"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class LeftControls extends Combine {
 | 
					export default class LeftControls extends Combine {
 | 
				
			||||||
    constructor(
 | 
					    constructor(state: FeaturePipelineState, guiState: DefaultGuiState) {
 | 
				
			||||||
        state: FeaturePipelineState,
 | 
					 | 
				
			||||||
        guiState: {
 | 
					 | 
				
			||||||
            currentViewControlIsOpened: UIEventSource<boolean>
 | 
					 | 
				
			||||||
            downloadControlIsOpened: UIEventSource<boolean>
 | 
					 | 
				
			||||||
            filterViewIsOpened: UIEventSource<boolean>
 | 
					 | 
				
			||||||
            copyrightViewIsOpened: UIEventSource<boolean>
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    ) {
 | 
					 | 
				
			||||||
        const currentViewFL = state.currentView?.layer
 | 
					        const currentViewFL = state.currentView?.layer
 | 
				
			||||||
        const currentViewAction = new Toggle(
 | 
					        const currentViewAction = new Toggle(
 | 
				
			||||||
            new Lazy(() => {
 | 
					            new Lazy(() => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue