@esvndev/es-react-config-setting 1.0.2 → 1.0.3

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.mjs CHANGED
@@ -6182,23 +6182,29 @@ const SettingApp = (props) => {
6182
6182
  return l;
6183
6183
  };
6184
6184
  const [dataSetting, setDataSetting] = useState([{
6185
+ id: 1,
6185
6186
  name: 'Cài đặt chung'
6186
6187
  }, {
6188
+ id: 2,
6187
6189
  name: 'Quyền riêng tư'
6188
6190
  }, {
6191
+ id: 3,
6189
6192
  name: 'Giao diện'
6190
6193
  }, {
6194
+ id: 4,
6191
6195
  name: 'Thông báo'
6192
6196
  }, {
6197
+ id: 5,
6193
6198
  name: 'Tin nhắn'
6194
6199
  }, {
6200
+ id: 6,
6195
6201
  name: 'Tiện ích'
6196
6202
  }]);
6197
6203
  return (jsx(Fragment, { children: isOpen ?
6198
- 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 mb-2 me-1", children: [jsx(Col, { md: 4, xs: 12, children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(ModalBody, { children: jsx(Row, { className: "m-0 gy-1 mb-2 me-1", children: dataSetting && dataSetting.length > 0 ?
6199
- dataSetting.map((item) => {
6200
- jsx(Col, { md: 12, xs: 12, children: jsx("label", { children: item.name }) });
6201
- }) : null }) }) }) }), jsx(Col, { md: 8, xs: 12, children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(ModalBody, { children: jsx("div", { children: jsxs("div", { className: 'box form-box__border mb-2', children: [jsx("h5", { className: "m-0 form-box__border--title", children: t('General information') }), jsx(Row, { className: "m-0 gy-1 mb-2 me-1" })] }) }) }) }) })] })] }) }) })
6204
+ 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 mb-2 me-1", children: [jsx(Col, { md: 4, xs: 12, children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(Row, { className: "m-0 gy-1 mb-2 me-1", children: dataSetting && dataSetting.length > 0 ?
6205
+ dataSetting.map((item) => {
6206
+ jsx(Col, { md: 12, xs: 12, children: jsx("label", { children: item.name }) }, item.id);
6207
+ }) : null }) }) }), jsx(Col, { md: 8, xs: 12, children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(ModalBody, { children: jsx("div", { children: jsxs("div", { className: 'box form-box__border mb-2', children: [jsx("h5", { className: "m-0 form-box__border--title", children: t('General information') }), jsx(Row, { className: "m-0 gy-1 mb-2 me-1" })] }) }) }) }) })] })] }) }) })
6202
6208
  : null }));
6203
6209
  };
6204
6210