@asaleh37/ui-base 25.6.19-2 → 25.6.19-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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/common/Home.tsx +1 -2
- package/src/components/common/MyNotificationsPanel.tsx +0 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +0 -1
- package/src/components/templates/report/ExcelReportViewer.tsx +1 -2
- package/src/components/templates/report/ReportViewer.tsx +1 -2
- package/src/layout/NavigationTree.tsx +3 -2
- package/src/layout/TopBar.tsx +1 -3
package/package.json
CHANGED
|
@@ -8,8 +8,7 @@ import AttachmentPanel from "../templates/attachment/AttachmentPanel";
|
|
|
8
8
|
import { useSelector } from "react-redux";
|
|
9
9
|
|
|
10
10
|
const Home: React.FC = () => {
|
|
11
|
-
const AppInfo = useSelector((state: any) => state.AppInfo.value);
|
|
12
|
-
console.log("AppInfo", AppInfo);
|
|
11
|
+
const AppInfo = useSelector((state: any) => state.AppInfo.value);
|
|
13
12
|
return (
|
|
14
13
|
<Box
|
|
15
14
|
sx={{
|
|
@@ -186,8 +186,7 @@ const ReportViewer: React.FC<ReportViewerProps> = (props) => {
|
|
|
186
186
|
// Clean up
|
|
187
187
|
document.body.removeChild(link);
|
|
188
188
|
window.URL.revokeObjectURL(url);
|
|
189
|
-
}
|
|
190
|
-
console.log(response);
|
|
189
|
+
}
|
|
191
190
|
},
|
|
192
191
|
failureCallBkFn: (response) => {
|
|
193
192
|
setErrorMessage(
|
|
@@ -237,6 +237,7 @@ export default function NavigationTree() {
|
|
|
237
237
|
const { isUserAuthorized } = useSession();
|
|
238
238
|
debugger;
|
|
239
239
|
const filterData = (data) => {
|
|
240
|
+
console.log("filterDate", data);
|
|
240
241
|
return data
|
|
241
242
|
.filter(
|
|
242
243
|
(item: any) =>
|
|
@@ -245,8 +246,8 @@ export default function NavigationTree() {
|
|
|
245
246
|
isUserAuthorized(item.authority)
|
|
246
247
|
)
|
|
247
248
|
.map((item: any) => {
|
|
248
|
-
if (item
|
|
249
|
-
item.children = filterData(item
|
|
249
|
+
if (item?.children) {
|
|
250
|
+
item.children = filterData(item?.children || []);
|
|
250
251
|
}
|
|
251
252
|
return item;
|
|
252
253
|
});
|
package/src/layout/TopBar.tsx
CHANGED
|
@@ -80,9 +80,7 @@ const TopBar: React.FC = () => {
|
|
|
80
80
|
const handleLogout = async () => {
|
|
81
81
|
try {
|
|
82
82
|
await handleGetRequest({ endPointURI: "api/auth/logout" });
|
|
83
|
-
} catch (error) {
|
|
84
|
-
console.log("logout error", error);
|
|
85
|
-
}
|
|
83
|
+
} catch (error) {}
|
|
86
84
|
dispatch(UserSessionActions.setUnAuthenticated());
|
|
87
85
|
};
|
|
88
86
|
const toggleSideBar = () => {
|