@bindu-dashing/dam-solution-v2 5.8.45 → 5.8.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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @bindu-dashing/dam-solution-v2
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
To install the library in your project:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @bindu-dashing/dam-solution-v2
|
|
11
11
|
# or
|
|
12
|
-
yarn add @
|
|
12
|
+
yarn add @bindu-dashing/dam-solution-v2
|
|
13
13
|
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ npm link
|
|
|
27
27
|
In test project:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npm link @
|
|
30
|
+
npm link @bindu-dashing/dam-solution-v2
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Publishing
|
|
@@ -18,7 +18,6 @@ import CustomButton from "../common/Button";
|
|
|
18
18
|
import TestImagePickerModal from "./TestImagePickerModal";
|
|
19
19
|
const FiImageIcon = FiImage;
|
|
20
20
|
function ImagePicker({ id, onSelect, url, }) {
|
|
21
|
-
console.log("id123", id, url);
|
|
22
21
|
const damConfig = useDamConfig();
|
|
23
22
|
const { brand } = damConfig;
|
|
24
23
|
const [picker, setPicker] = useState({});
|
|
@@ -25,7 +25,7 @@ import Metadata from "../fileDetails/Metadata";
|
|
|
25
25
|
import { updateFile } from "../../react-query/services/file-services";
|
|
26
26
|
import { DATE_FORMAT, DATE_WITH_TIME_FORMAT } from "../../hocs/appConstants";
|
|
27
27
|
import dayjs from "dayjs";
|
|
28
|
-
import
|
|
28
|
+
import useAppNavigate from "../../utilities/useAppNavigate";
|
|
29
29
|
import { addQueryParams } from "../../hocs/helpers";
|
|
30
30
|
function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
31
31
|
const { folderId, type } = useAppParams();
|
|
@@ -37,7 +37,7 @@ function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
|
37
37
|
const [form] = Form.useForm();
|
|
38
38
|
const api = useMemo(() => createApiClient(damConfig), [damConfig]);
|
|
39
39
|
const file = filesList === null || filesList === void 0 ? void 0 : filesList[0];
|
|
40
|
-
const navigate =
|
|
40
|
+
const navigate = useAppNavigate();
|
|
41
41
|
const [state, setState] = useState({
|
|
42
42
|
loading: false,
|
|
43
43
|
selectedAssetTemplate: null,
|
|
@@ -206,8 +206,9 @@ function MapFile({ open, handleCancel, filesList, fromUpload, }) {
|
|
|
206
206
|
if (handleCancel) {
|
|
207
207
|
handleCancel();
|
|
208
208
|
}
|
|
209
|
-
else {
|
|
210
|
-
navigate
|
|
209
|
+
else if (navigate) {
|
|
210
|
+
// Navigate back if navigate function is available
|
|
211
|
+
window.history.back();
|
|
211
212
|
}
|
|
212
213
|
}, children: "Cancel" }), _jsx(Button, { disabled: !selectedAssetTemplate, type: "primary",
|
|
213
214
|
// onClick={handleSubmit}
|