mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
Global classNames, and more
This commit is contained in:
@@ -22,4 +22,6 @@
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
|
||||
:global(.offTopicComment) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -39,4 +39,4 @@ const ViewingOptions = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default ViewingOptions;
|
||||
export default ViewingOptions;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const OPEN_VIEWING_OPTIONS = 'OPEN_VIEWING_OPTIONS';
|
||||
export const CLOSE_VIEWING_OPTIONS = 'CLOSE_VIEWING_OPTIONS';
|
||||
export const CLOSE_VIEWING_OPTIONS = 'CLOSE_VIEWING_OPTIONS';
|
||||
|
||||
@@ -6,15 +6,15 @@ const initialState = {
|
||||
|
||||
export default function offTopic (state = initialState, action) {
|
||||
switch (action.type) {
|
||||
case OPEN_VIEWING_OPTIONS:
|
||||
return {
|
||||
...state,
|
||||
open: true
|
||||
};
|
||||
case CLOSE_VIEWING_OPTIONS:
|
||||
return {
|
||||
...state,
|
||||
open: false
|
||||
case OPEN_VIEWING_OPTIONS:
|
||||
return {
|
||||
...state,
|
||||
open: true
|
||||
};
|
||||
case CLOSE_VIEWING_OPTIONS:
|
||||
return {
|
||||
...state,
|
||||
open: false
|
||||
};
|
||||
default :
|
||||
return state;
|
||||
|
||||
@@ -1 +1 @@
|
||||
module.exports = {};
|
||||
module.exports = {};
|
||||
|
||||
Reference in New Issue
Block a user