@devtron-labs/devtron-fe-common-lib 0.0.7-beta-45 → 0.0.7-beta-46
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
CHANGED
|
@@ -4,7 +4,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
var reactRouterDom = require('react-router-dom');
|
|
7
|
-
var reactRouter = require('react-router');
|
|
8
7
|
|
|
9
8
|
function _interopNamespaceDefault(e) {
|
|
10
9
|
var n = Object.create(null);
|
|
@@ -16710,7 +16709,7 @@ var info = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
16710
16709
|
function DeleteComponent(_a) {
|
|
16711
16710
|
var setDeleting = _a.setDeleting, toggleConfirmation = _a.toggleConfirmation, deleteComponent = _a.deleteComponent, title = _a.title, component = _a.component, payload = _a.payload, _b = _a.confirmationDialogDescription, confirmationDialogDescription = _b === void 0 ? '' : _b, _c = _a.redirectTo, redirectTo = _c === void 0 ? false : _c, _d = _a.url, url = _d === void 0 ? '' : _d, reload = _a.reload, _e = _a.configuration, configuration = _e === void 0 ? '' : _e, closeCustomComponent = _a.closeCustomComponent;
|
|
16712
16711
|
var _f = __read(React.useState(false), 2), showCannotDeleteDialogModal = _f[0], setCannotDeleteDialogModal = _f[1];
|
|
16713
|
-
var push =
|
|
16712
|
+
var push = reactRouterDom.useHistory().push;
|
|
16714
16713
|
function handleDelete() {
|
|
16715
16714
|
return __awaiter(this, void 0, void 0, function () {
|
|
16716
16715
|
var serverError_1;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import { useHistory } from 'react-router'
|
|
2
|
+
import { useHistory } from 'react-router-dom'
|
|
3
3
|
import { toast } from 'react-toastify'
|
|
4
4
|
import info from '../../Assets/Icon/ic-info-filled.svg'
|
|
5
5
|
import { ConfirmationDialog, DeleteDialog } from '../Dialogs'
|