@bindu-dashing/dam-solution-v2 5.8.7 → 5.8.9
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.
|
@@ -4,7 +4,7 @@ import { ThemeProvider } from "../hocs/ThemeContext";
|
|
|
4
4
|
import { ThemeModes } from "../utilities/constants/interface";
|
|
5
5
|
import AppProvider from "../hocs/AppProvider";
|
|
6
6
|
import ToastProvider from "../hocs/ToastProvider";
|
|
7
|
-
import { MemoryRouter } from "react-router-dom";
|
|
7
|
+
// import { MemoryRouter } from "react-router-dom";
|
|
8
8
|
import AppRoutes from "./routes";
|
|
9
9
|
import process from "process";
|
|
10
10
|
function App(props) {
|
|
@@ -19,6 +19,6 @@ function App(props) {
|
|
|
19
19
|
if (typeof window !== "undefined" && !window.process) {
|
|
20
20
|
window.process = process;
|
|
21
21
|
}
|
|
22
|
-
return (_jsx(DamConfigProvider, { config: config, children: _jsx(ThemeProvider, { styles: props === null || props === void 0 ? void 0 : props.styles, sessionTheme: ThemeModes.LIGHT, children: _jsxs(AppProvider, { children: [_jsx(
|
|
22
|
+
return (_jsx(DamConfigProvider, { config: config, children: _jsx(ThemeProvider, { styles: props === null || props === void 0 ? void 0 : props.styles, sessionTheme: ThemeModes.LIGHT, children: _jsxs(AppProvider, { children: [_jsx(AppRoutes, { id: props.id, onSelect: props === null || props === void 0 ? void 0 : props.onSelect, url: props === null || props === void 0 ? void 0 : props.url, routerVersion: (props === null || props === void 0 ? void 0 : props.routerVersion) || 6 }), _jsx(ToastProvider, {})] }) }) }));
|
|
23
23
|
}
|
|
24
24
|
export default App;
|
|
@@ -31,7 +31,6 @@ export const DamConfigProvider = ({ children, config }) => {
|
|
|
31
31
|
const getToken = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
32
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33
33
|
setLoading(true);
|
|
34
|
-
console.log("getToken", getBaseUrl(appType), appType);
|
|
35
34
|
try {
|
|
36
35
|
const response = yield axios.post(getBaseUrl(appType) + USER_LOGIN, {
|
|
37
36
|
accessKey: damAccessKey,
|
|
@@ -16,7 +16,6 @@ import { useInfiniteQuery } from "react-query";
|
|
|
16
16
|
function fetchPickers(api, params) {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
try {
|
|
19
|
-
console.log("fetchPickers", `${FETCH_IMAGEPICKERS_URL}?${addQueryParams(params)}`);
|
|
20
19
|
const response = yield api.get(`${FETCH_IMAGEPICKERS_URL}?${addQueryParams(params)}`);
|
|
21
20
|
return get(response, "data");
|
|
22
21
|
}
|