@ssplib/react-components 0.0.179 → 0.0.180
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.
|
@@ -81,23 +81,6 @@ function Table({ columns, fetchFunc, emptyMsg = {
|
|
|
81
81
|
status: j.statusCode,
|
|
82
82
|
});
|
|
83
83
|
else {
|
|
84
|
-
// if (multipleDataPath !== '') {
|
|
85
|
-
// ;(j as any[]).forEach((x) => {
|
|
86
|
-
// const list: any[] = x[multipleDataPath]
|
|
87
|
-
// if (list) {
|
|
88
|
-
// list.forEach((d) => {
|
|
89
|
-
// newData.push({
|
|
90
|
-
// ...x,
|
|
91
|
-
// dtInicio: d.inicio,
|
|
92
|
-
// hrInicio: d.hr_inicio,
|
|
93
|
-
// hrTermino: d.hr_termino,
|
|
94
|
-
// })
|
|
95
|
-
// })
|
|
96
|
-
// }
|
|
97
|
-
// })
|
|
98
|
-
// } else {
|
|
99
|
-
// newData = j
|
|
100
|
-
// }
|
|
101
84
|
setData(j);
|
|
102
85
|
startData = JSON.parse(JSON.stringify(j));
|
|
103
86
|
const oldFilters = localStorage.getItem(filterStorageName);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export default function NavBar({ links, title, img, pos, next, el, menuItems, logoutMsg, ...props }: {
|
|
2
|
+
export default function NavBar({ links, title, img, pos, next, el, menuItems, paddingBottom, logoutMsg, ...props }: {
|
|
3
3
|
links: {
|
|
4
4
|
name: string;
|
|
5
5
|
path: string;
|
|
6
6
|
}[];
|
|
7
7
|
title: string;
|
|
8
8
|
img: string;
|
|
9
|
+
paddingBottom: number;
|
|
9
10
|
menuItems: JSX.Element | JSX.Element[];
|
|
10
11
|
next?: boolean;
|
|
11
12
|
el?: JSX.Element;
|
|
@@ -49,7 +49,7 @@ const router_1 = require("next/router");
|
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const auth_1 = require("../../context/auth");
|
|
51
51
|
function NavBar(_a) {
|
|
52
|
-
var { links, title, img, pos = 'fixed', next = true, el, menuItems, logoutMsg = 'Sair' } = _a, props = __rest(_a, ["links", "title", "img", "pos", "next", "el", "menuItems", "logoutMsg"]);
|
|
52
|
+
var { links, title, img, pos = 'fixed', next = true, el, menuItems, paddingBottom = 9, logoutMsg = 'Sair' } = _a, props = __rest(_a, ["links", "title", "img", "pos", "next", "el", "menuItems", "paddingBottom", "logoutMsg"]);
|
|
53
53
|
let router = undefined;
|
|
54
54
|
if (next)
|
|
55
55
|
router = (0, router_1.useRouter)();
|
|
@@ -149,6 +149,6 @@ function NavBar(_a) {
|
|
|
149
149
|
react_1.default.createElement(material_1.Typography, { fontWeight: 600, fontSize: 15, padding: 0.4 }, "Entrar com o gov.br"))) : (react_1.default.createElement(material_1.Button, { variant: 'contained', size: 'small', startIcon: react_1.default.createElement(Person_1.default, null), onClick: login, sx: { color: 'white', textTransform: 'inherit', borderRadius: 50, paddingX: 2 } },
|
|
150
150
|
react_1.default.createElement(material_1.Typography, { fontWeight: 600, fontSize: 15, padding: 0.4 }, "Entrar"))))))),
|
|
151
151
|
loading && react_1.default.createElement(LinearProgress_1.default, null)),
|
|
152
|
-
react_1.default.createElement(material_1.Box, { paddingBottom:
|
|
152
|
+
react_1.default.createElement(material_1.Box, { paddingBottom: paddingBottom })));
|
|
153
153
|
}
|
|
154
154
|
exports.default = NavBar;
|