Fix typo in reducers (#34)

Summary:
Fixed typos in reducers
Closes https://github.com/facebook/Sonar/pull/34

Differential Revision: D8379211

Pulled By: danielbuechele

fbshipit-source-id: d1dc6ff80963b931a3d8b1e4abe0f40ade3ba67f
This commit is contained in:
sungjk
2018-06-12 06:05:49 -07:00
committed by Facebook Github Bot
parent dba07a33c7
commit 1fa0eb3ad2
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ export type Action = {
payload?: boolean, payload?: boolean,
}; };
const INITAL_STATE: State = { const INITIAL_STATE: State = {
leftSidebarVisible: true, leftSidebarVisible: true,
rightSidebarVisible: true, rightSidebarVisible: true,
rightSidebarAvailable: false, rightSidebarAvailable: false,
@@ -39,7 +39,7 @@ const INITAL_STATE: State = {
}; };
export default function reducer( export default function reducer(
state: State = INITAL_STATE, state: State = INITIAL_STATE,
action: Action, action: Action,
): State { ): State {
const newValue = const newValue =

View File

@@ -18,10 +18,10 @@ export type Action =
payload: BaseDevice, payload: BaseDevice,
}; };
const INITAL_STATE: State = []; const INITIAL_STATE: State = [];
export default function reducer( export default function reducer(
state: State = INITAL_STATE, state: State = INITIAL_STATE,
action: Action, action: Action,
): State { ): State {
switch (action.type) { switch (action.type) {