@esvndev/es-react-config-setting 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6254,18 +6254,14 @@ const SettingApp = (props) => {
|
|
|
6254
6254
|
}]);
|
|
6255
6255
|
//Sự kiện chọn loại cài đặt
|
|
6256
6256
|
const switchSettingTab = (data) => {
|
|
6257
|
-
const
|
|
6258
|
-
|
|
6259
|
-
item.
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
}
|
|
6263
|
-
}
|
|
6264
|
-
setDataSetting(_);
|
|
6265
|
-
console.log(_, data);
|
|
6257
|
+
const updated = dataSetting.map((item) => ({
|
|
6258
|
+
...item,
|
|
6259
|
+
active: item.id === data.id
|
|
6260
|
+
}));
|
|
6261
|
+
setDataSetting(updated);
|
|
6266
6262
|
};
|
|
6267
6263
|
return (jsx(Fragment, { children: isOpen ?
|
|
6268
|
-
jsx(Modal$1, { isOpen: true, toggle: handleModal, className: 'modal-dialog-centered modal-lg', contentClassName: 'p-0', onOpened: handleFormOpened, onClosed: handleFormClosed, backdrop: backdrop, children: jsx(Form$1, { id: 'form-modal-globalzone', className: 'todo-modal', onSubmit: handleSubmit, children: jsxs("div", { className: "", children: [jsx(ModalHeader, { handleModal: handleModal, typeModal: "typeModal", title: 'C\u00E0i \u0111\u1EB7t' }), jsxs(Row, { className: "m-0 gy-1", children: [jsx(Col, { md: 4, xs: 12, className: "setting-menu", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(Row, { className: "m-0 gy-1 mb-2", children: dataSetting && dataSetting.length > 0 ?
|
|
6264
|
+
jsx(Modal$1, { isOpen: true, toggle: handleModal, className: 'modal-dialog-centered modal-lg', contentClassName: 'p-0', onOpened: handleFormOpened, onClosed: handleFormClosed, backdrop: backdrop, children: jsx(Form$1, { id: 'form-modal-globalzone', className: 'todo-modal', onSubmit: handleSubmit, children: jsxs("div", { className: "", children: [jsx(ModalHeader, { handleModal: handleModal, typeModal: "typeModal", title: 'C\u00E0i \u0111\u1EB7t' }), jsxs(Row, { className: "m-0 gy-1 setting-modal-body-custom", children: [jsx(Col, { md: 4, xs: 12, className: "setting-menu", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(Row, { className: "m-0 gy-1 mb-2", children: dataSetting && dataSetting.length > 0 ?
|
|
6269
6265
|
dataSetting.map((item) => {
|
|
6270
6266
|
return (jsx("div", { className: 'setting-menu__item ' + (item.active ? 'selected' : ''), onClick: () => { switchSettingTab(item); }, children: jsxs("div", { className: "setting-menu__wrapper-content truncate", children: [item.icon, jsx("p", { className: "setting-menu__name truncate", children: jsx("span", { children: item.name }) })] }) }, item.id));
|
|
6271
6267
|
}) : null }) }) }), jsx(Col, { md: 8, xs: 12, className: "stack-navigation stack-page", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(ModalBody, { children: jsx("div", { className: "setting-section" }) }) }) })] })] }) }) })
|