From a451e310aacb47ca2d52a8b6bcc194e057d6d5f2 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 9 Oct 2018 11:19:38 -0700 Subject: [PATCH] Use constants for window defualt state --- js/reducers/windows.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/reducers/windows.ts b/js/reducers/windows.ts index dbbb133d..12f9c645 100644 --- a/js/reducers/windows.ts +++ b/js/reducers/windows.ts @@ -58,7 +58,7 @@ const defaultWindowsState: WindowsState = { positionsAreRelative: true, genWindows: { // TODO: Remove static capabilites and derive them from ids/generic - main: { + [WINDOWS.MAIN]: { title: "Main Window", size: [0, 0], open: true, @@ -71,7 +71,7 @@ const defaultWindowsState: WindowsState = { hotkey: "Alt+W", position: { x: 0, y: 0 } }, - equalizer: { + [WINDOWS.EQUALIZER]: { title: "Equalizer", size: [0, 0], open: true, @@ -84,7 +84,7 @@ const defaultWindowsState: WindowsState = { hotkey: "Alt+G", position: { x: 0, y: 0 } }, - playlist: { + [WINDOWS.PLAYLIST]: { title: "Playlist Editor", size: [0, 0], open: true,