From 6561f733b72a00ceea31a03904a0f69d893aa1ad Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 8 Jun 2017 01:17:36 +0700 Subject: [PATCH] Use correct prefix --- plugins/coral-plugin-viewing-options/client/actions.js | 6 +++--- plugins/coral-plugin-viewing-options/client/constants.js | 4 ++-- plugins/coral-plugin-viewing-options/client/reducer.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/coral-plugin-viewing-options/client/actions.js b/plugins/coral-plugin-viewing-options/client/actions.js index 24fcbb4ec..8a6473e3c 100644 --- a/plugins/coral-plugin-viewing-options/client/actions.js +++ b/plugins/coral-plugin-viewing-options/client/actions.js @@ -1,9 +1,9 @@ -import {OPEN_VIEWING_OPTIONS, CLOSE_VIEWING_OPTIONS} from './constants'; +import {VIEWING_OPTIONS_OPEN, VIEWING_OPTIONS_CLOSE} from './constants'; export const openViewingOptions = () => ({ - type: OPEN_VIEWING_OPTIONS + type: VIEWING_OPTIONS_OPEN }); export const closeViewingOptions = () => ({ - type: CLOSE_VIEWING_OPTIONS + type: VIEWING_OPTIONS_CLOSE }); diff --git a/plugins/coral-plugin-viewing-options/client/constants.js b/plugins/coral-plugin-viewing-options/client/constants.js index 7ff2dea6f..586fe7a28 100644 --- a/plugins/coral-plugin-viewing-options/client/constants.js +++ b/plugins/coral-plugin-viewing-options/client/constants.js @@ -1,2 +1,2 @@ -export const OPEN_VIEWING_OPTIONS = 'OPEN_VIEWING_OPTIONS'; -export const CLOSE_VIEWING_OPTIONS = 'CLOSE_VIEWING_OPTIONS'; +export const VIEWING_OPTIONS_OPEN = 'VIEWING_OPTIONS_OPEN'; +export const VIEWING_OPTIONS_CLOSE = 'VIEWING_OPTIONS_CLOSE'; diff --git a/plugins/coral-plugin-viewing-options/client/reducer.js b/plugins/coral-plugin-viewing-options/client/reducer.js index fc1278f38..ab9f077df 100644 --- a/plugins/coral-plugin-viewing-options/client/reducer.js +++ b/plugins/coral-plugin-viewing-options/client/reducer.js @@ -1,4 +1,4 @@ -import {OPEN_VIEWING_OPTIONS, CLOSE_VIEWING_OPTIONS} from './constants'; +import {VIEWING_OPTIONS_OPEN, VIEWING_OPTIONS_CLOSE} from './constants'; const initialState = { open: false @@ -6,12 +6,12 @@ const initialState = { export default function offTopic (state = initialState, action) { switch (action.type) { - case OPEN_VIEWING_OPTIONS: + case VIEWING_OPTIONS_OPEN: return { ...state, open: true }; - case CLOSE_VIEWING_OPTIONS: + case VIEWING_OPTIONS_CLOSE: return { ...state, open: false