Skip to content

Commit

Permalink
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 016c6a0 commit ceec881
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reducers/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +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: Layout
panelsAvailable: string[]
panelsToDisplay: string[]
showTreeToo: boolean
Expand All @@ -39,7 +42,7 @@ export interface ControlsState extends BasicControlsState, MeasurementsControlSt

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

0 comments on commit ceec881

Please sign in to comment.