@salesgenterp/ui-components 0.4.555 → 0.4.556
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 +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3250,11 +3250,13 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3250
3250
|
var _useState8 = useState(0),
|
|
3251
3251
|
value = _useState8[0],
|
|
3252
3252
|
setValue = _useState8[1];
|
|
3253
|
+
var showSalesOrderTable = !hideSalesOrderTab;
|
|
3254
|
+
var showInvoiceTable = !hideInvoiceTab;
|
|
3255
|
+
var showTableSection = showSalesOrderTable || showInvoiceTable;
|
|
3253
3256
|
useEffect(function () {
|
|
3254
|
-
if (hideSalesOrderTab) {
|
|
3257
|
+
if (hideSalesOrderTab && !hideInvoiceTab) {
|
|
3255
3258
|
setValue(1);
|
|
3256
|
-
}
|
|
3257
|
-
if (hideInvoiceTab) {
|
|
3259
|
+
} else if (hideInvoiceTab && !hideSalesOrderTab) {
|
|
3258
3260
|
setValue(0);
|
|
3259
3261
|
}
|
|
3260
3262
|
}, [hideSalesOrderTab, hideInvoiceTab]);
|
|
@@ -3695,7 +3697,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3695
3697
|
style: {
|
|
3696
3698
|
marginTop: '1rem'
|
|
3697
3699
|
}
|
|
3698
|
-
})))))), /*#__PURE__*/React__default.createElement(TableContainer, null, /*#__PURE__*/React__default.createElement(APITable, {
|
|
3700
|
+
})))))), showTableSection && /*#__PURE__*/React__default.createElement(TableContainer, null, /*#__PURE__*/React__default.createElement(APITable, {
|
|
3699
3701
|
key: value,
|
|
3700
3702
|
cacheFilters: true,
|
|
3701
3703
|
extraFilterParams: value === 0 ? selectDates.recentInvoices : selectDates.salesOrders,
|
|
@@ -3706,7 +3708,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3706
3708
|
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
3707
3709
|
item: true,
|
|
3708
3710
|
xs: 12
|
|
3709
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
3711
|
+
}, showSalesOrderTable && showInvoiceTable && /*#__PURE__*/React__default.createElement(Box, {
|
|
3710
3712
|
sx: {
|
|
3711
3713
|
borderBottom: 1,
|
|
3712
3714
|
borderColor: 'divider'
|
|
@@ -3717,9 +3719,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
3717
3719
|
"aria-label": "basic tabs example",
|
|
3718
3720
|
primaryColor: primaryColor,
|
|
3719
3721
|
fontColor: fontColor
|
|
3720
|
-
},
|
|
3722
|
+
}, /*#__PURE__*/React__default.createElement(Tab, _extends({
|
|
3721
3723
|
label: "Sales Orders"
|
|
3722
|
-
}, a11yProps(0))),
|
|
3724
|
+
}, a11yProps(0))), /*#__PURE__*/React__default.createElement(Tab, _extends({
|
|
3723
3725
|
label: "Recent Invoices"
|
|
3724
3726
|
}, a11yProps(1)))))), /*#__PURE__*/React__default.createElement(TypographyContainer$2, {
|
|
3725
3727
|
variant: "h4",
|