feat: reducer and actions for creating a collection

This commit is contained in:
Anoop M D
2022-01-23 17:13:30 +05:30
parent efaa9aed21
commit 2431c0ac03
3 changed files with 18 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ const Sidebar = ({collections, actions, dispatch, activeRequestTabId}) => {
const handleConfirm = (values) => {
console.log(values);
dispatch({
name: values.collectionName,
type: actions.COLLECTION_CREATE
});
setModalOpen(false);
};