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 FeaturePipelineState from "../../Logic/State/FeaturePipelineState"
|
||||
import Hotkeys from "../Base/Hotkeys"
|
||||
import { DefaultGuiState } from "../DefaultGuiState"
|
||||
|
||||
export default class LeftControls extends Combine {
|
||||
constructor(
|
||||
state: FeaturePipelineState,
|
||||
guiState: {
|
||||
currentViewControlIsOpened: UIEventSource<boolean>
|
||||
downloadControlIsOpened: UIEventSource<boolean>
|
||||
filterViewIsOpened: UIEventSource<boolean>
|
||||
copyrightViewIsOpened: UIEventSource<boolean>
|
||||
}
|
||||
) {
|
||||
constructor(state: FeaturePipelineState, guiState: DefaultGuiState) {
|
||||
const currentViewFL = state.currentView?.layer
|
||||
const currentViewAction = new Toggle(
|
||||
new Lazy(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue