@esvndev/es-react-config-setting 1.0.11 → 1.0.13
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.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6281,14 +6281,11 @@ const SettingApp = (props) => {
|
|
|
6281
6281
|
}]);
|
|
6282
6282
|
//Sự kiện chọn loại cài đặt
|
|
6283
6283
|
const switchSettingTab = (data) => {
|
|
6284
|
-
|
|
6285
|
-
item
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
}
|
|
6290
|
-
setDataSetting(dataSetting);
|
|
6291
|
-
console.log(dataSetting, data);
|
|
6284
|
+
const updated = dataSetting.map((item) => ({
|
|
6285
|
+
...item,
|
|
6286
|
+
active: item.id === data.id
|
|
6287
|
+
}));
|
|
6288
|
+
setDataSetting(updated);
|
|
6292
6289
|
};
|
|
6293
6290
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isOpen ?
|
|
6294
6291
|
jsxRuntime.jsx(Modal$1, { isOpen: true, toggle: handleModal, className: 'modal-dialog-centered modal-lg', contentClassName: 'p-0', onOpened: handleFormOpened, onClosed: handleFormClosed, backdrop: backdrop, children: jsxRuntime.jsx(Form$1, { id: 'form-modal-globalzone', className: 'todo-modal', onSubmit: handleSubmit, children: jsxRuntime.jsxs("div", { className: "", children: [jsxRuntime.jsx(ModalHeader, { handleModal: handleModal, typeModal: "typeModal", title: 'C\u00E0i \u0111\u1EB7t' }), jsxRuntime.jsxs(Row, { className: "m-0 gy-1", children: [jsxRuntime.jsx(Col, { md: 4, xs: 12, className: "setting-menu", children: jsxRuntime.jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsxRuntime.jsx(Row, { className: "m-0 gy-1 mb-2", children: dataSetting && dataSetting.length > 0 ?
|