Skip to content

Commit

Permalink
fixup! Add type for state.controls.layout
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 9, 2024
1 parent 33277b5 commit 6d65167
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/reducers/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import { calcBrowserDimensionsInitialState } from "./browserDimensions";
import { doesColorByHaveConfidence } from "../actions/recomputeReduxState";
import { hasMultipleGridPanels } from "../actions/panelDisplay";

type Layout = "rect" | "radial" | "unrooted" | "clock" | "scatter"

export interface BasicControlsState {
defaults: Defaults
layout: "rect" | "radial" | "unrooted" | "clock" | "scatter"
layout: Layout
panelsAvailable: string[]
panelsToDisplay: string[]
showTreeToo: boolean
Expand All @@ -40,7 +42,7 @@ export interface ControlsState extends BasicControlsState, MeasurementsControlSt

interface Defaults {
distanceMeasure: string
layout: string
layout: Layout
geoResolution: string
filters: Record<string, any>
filtersInFooter: any[]
Expand Down

0 comments on commit 6d65167

Please sign in to comment.