Skip to content

Commit

Permalink
refactor(actions): reduce code for TOGGLE_GLOSSARY
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Sep 25, 2017
1 parent 1281938 commit 3924b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
@@ -1,4 +1,4 @@
export const TOGGLE_GLOSSARY = Symbol('TOGGLE_GLOSSARY')
export const TOGGLE_GLOSSARY = 'TOGGLE_GLOSSARY'
export const TOGGLE_HEADER = Symbol('TOGGLE_HEADER')
export const TOGGLE_KEY_SHORTCUTS = Symbol('TOGGLE_KEY_SHORTCUTS')
export const FETCH_FAILED = Symbol('FETCH_FAILED')
Expand Down
@@ -1,3 +1,4 @@
import { createAction } from 'redux-actions'
import {
fetchStatistics,
fetchLocales,
Expand All @@ -21,11 +22,7 @@ import {
import { some, curry, isEmpty } from 'lodash'
import { equals } from '../utils/string-utils'

export function toggleGlossary () {
return {
type: TOGGLE_GLOSSARY
}
}
export const toggleGlossary = createAction(TOGGLE_GLOSSARY)

export function toggleHeader () {
return {
Expand Down

0 comments on commit 3924b5f

Please sign in to comment.