Files
frontend-app-authoring/src/generic/processing-notification/data/slice.js
Navin Karkera 134b75568a feat: section list and new section button
Also refactor api and hooks

fix: publish button behaviour and card header tests

fix: warning in highlights and publish modal test

fix: courseoutline tests

test: add test for new section functionality

fix(lint): lint issues

refactor: remove unnecessary css in CardHeader

refactor: rename emptyPlaceholder test file

refactor: replace ternary operator with 'and' condition

refactor: add black color to expand/collapse button

refactor: display only changed subsection and units in publish modal

refactor: update messages and css

refactor: wrap urls in function call

refactor: fix jsdoc types

refactor: use helmet for document title
2023-12-20 10:20:48 -05:00

31 lines
638 B
JavaScript

/* eslint-disable no-param-reassign */
import { createSlice } from '@reduxjs/toolkit';
import { NOTIFICATION_MESSAGES } from '../../../constants';
const initialState = {
isShow: false,
title: NOTIFICATION_MESSAGES.empty,
};
const slice = createSlice({
name: 'processingNotification',
initialState,
reducers: {
showProcessingNotification: (state, { payload }) => {
state.isShow = true;
state.title = payload;
},
hideProcessingNotification: () => initialState,
},
});
export const {
showProcessingNotification,
hideProcessingNotification,
} = slice.actions;
export const {
reducer,
} = slice;