mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Use correct prefix
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user