feat: Created Course updates page (#581)

This commit is contained in:
vladislavkeblysh
2023-08-31 17:56:45 +03:00
committed by GitHub
parent 181f9c7a5f
commit ffae3bd868
61 changed files with 2241 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
// eslint-disable-next-line import/prefer-default-export
export const getProcessingNotification = (state) => ({
isShow: state.processingNotification.isShow,
title: state.processingNotification.title,
});

View File

@@ -0,0 +1,28 @@
/* eslint-disable no-param-reassign */
import { createSlice } from '@reduxjs/toolkit';
const initialState = {
isShow: false,
title: '',
};
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;