@acvl/frontend-components 0.0.11 → 0.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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/drawers/HistorialDrawer/index.d.ts +4 -1
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -25862,7 +25862,7 @@ const _HistorialDrawer = (props) => {
|
|
|
25862
25862
|
const [getHistorial, { data, isLoading, isFetching }] = api.useLazyGetHistorialQuery();
|
|
25863
25863
|
React.useEffect(() => {
|
|
25864
25864
|
if (props.open)
|
|
25865
|
-
getHistorial({ endpoint:
|
|
25865
|
+
getHistorial({ endpoint: props.endpoint || pathname });
|
|
25866
25866
|
}, [getHistorial, pathname, props.endpoint, props.open]);
|
|
25867
25867
|
return (jsxRuntime.jsx(MainDrawer, { open: props.open, drawerToggle: props.handleDrawer, title: 'Historial', children: jsxRuntime.jsx(LoadingComponent, { height: '50vh', isLoading: isLoading || isFetching, children: jsxRuntime.jsx(lab.Timeline, { sx: {
|
|
25868
25868
|
pr: 0,
|
|
@@ -25924,7 +25924,7 @@ const HistorialDrawer = (props) => {
|
|
|
25924
25924
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(material.Tooltip, { title: 'Historial', children: jsxRuntime.jsx(material.IconButton, { color: 'primary', onClick: handleDrawer, sx: {
|
|
25925
25925
|
position: 'absolute',
|
|
25926
25926
|
right: 0,
|
|
25927
|
-
}, children: jsxRuntime.jsx(HistoryIcon, {}) }) }), jsxRuntime.jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer,
|
|
25927
|
+
}, ...props.iconButtonProps, children: jsxRuntime.jsx(HistoryIcon, {}) }) }), jsxRuntime.jsx(_HistorialDrawer, { open: open, handleDrawer: handleDrawer, endpoint: props.endpoint })] }));
|
|
25928
25928
|
};
|
|
25929
25929
|
|
|
25930
25930
|
const buildListItems = (content) => {
|