@appcorp/stellar-solutions-modules 0.1.12 → 0.1.13
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.
|
@@ -6,101 +6,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.PreferencesPage = void 0;
|
|
8
8
|
var react_1 = __importDefault(require("react"));
|
|
9
|
-
// import { useTranslations } from 'next-intl';
|
|
10
|
-
// import {
|
|
11
|
-
// calculatePages,
|
|
12
|
-
// getAvailablePageLimits,
|
|
13
|
-
// isNextButtonDisabled,
|
|
14
|
-
// isPreviousButtonDisabled,
|
|
15
|
-
// } from '@react-pakistan/util-functions';
|
|
16
9
|
var context_1 = require("./context");
|
|
17
|
-
// import { VistaTableV1 } from '@appcorp/app-corp-vista/organisms/vista-table-v1/vista-table-v1';
|
|
18
|
-
// import { tableBodyCols } from './constants';
|
|
19
|
-
// import { Drawer } from "./drawer";
|
|
20
10
|
var generate_toast_1 = require("@appcorp/app-corp-vista/utils/generate-toast");
|
|
21
11
|
var vista_dashboard_tabs_v1_1 = require("@appcorp/app-corp-vista/molecules/vista-dashboard-tabs-v1/vista-dashboard-tabs-v1");
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
// import "slick-carousel/slick/slick.css";
|
|
13
|
+
// import "slick-carousel/slick/slick-theme.css";
|
|
24
14
|
var constants_1 = require("./constants");
|
|
25
15
|
var PreferencesPage = function () {
|
|
26
|
-
var _a = (0, context_1.usePreferenceStateContext)(),
|
|
27
|
-
// count,
|
|
28
|
-
// currentPage,
|
|
29
|
-
// pageLimit,
|
|
30
|
-
// handleNextClick,
|
|
31
|
-
// handlePreviousClick,
|
|
32
|
-
// // toggleDrawerOpen,
|
|
33
|
-
// headerActions,
|
|
34
|
-
// handlePageLimit,
|
|
35
|
-
// searchQuery,
|
|
36
|
-
// searchOnChange,
|
|
37
|
-
// rowActions,
|
|
38
|
-
// invoices,
|
|
39
|
-
// listLoading,
|
|
40
|
-
headerTabs = _a.headerTabs, activeTab = _a.activeTab;
|
|
41
|
-
// const t = useTranslations('invoicePage');
|
|
42
|
-
// const translationMap = {
|
|
43
|
-
// formLabelName: 'formLabelName',
|
|
44
|
-
// formLabelBuyPrice: 'formLabelBuyPrice',
|
|
45
|
-
// formLabelDescription: 'formLabelDescription',
|
|
46
|
-
// formLabelQuantity: 'formLabelQuantity',
|
|
47
|
-
// formLabelSalePrice: 'formLabelSalePrice',
|
|
48
|
-
// formLabelRef: 'formLabelRef',
|
|
49
|
-
// formLabelCurrency: 'formLabelCurrency',
|
|
50
|
-
// formLabelImage: 'formLabelImage',
|
|
51
|
-
// formLabelProductCategory: 'formLabelProductCategory',
|
|
52
|
-
// };
|
|
53
|
-
// const tableHeadItems = [
|
|
54
|
-
// {
|
|
55
|
-
// label: t('tableColumnHeaderId'),
|
|
56
|
-
// width: '5%',
|
|
57
|
-
// },
|
|
58
|
-
// {
|
|
59
|
-
// label: t('tableColumnHeaderName'),
|
|
60
|
-
// width: '10%',
|
|
61
|
-
// },
|
|
62
|
-
// {
|
|
63
|
-
// label: t('tableColumnHeaderCurrency'),
|
|
64
|
-
// width: '5%',
|
|
65
|
-
// },
|
|
66
|
-
// {
|
|
67
|
-
// label: t('tableColumnHeaderIssueExpiryDate'),
|
|
68
|
-
// width: '10%',
|
|
69
|
-
// },
|
|
70
|
-
// {
|
|
71
|
-
// label: t('tableColumnHeaderNote'),
|
|
72
|
-
// width: '5%',
|
|
73
|
-
// },
|
|
74
|
-
// {
|
|
75
|
-
// label: t('tableColumnHeaderRef'),
|
|
76
|
-
// width: '5%',
|
|
77
|
-
// },
|
|
78
|
-
// {
|
|
79
|
-
// label: t('tableColumnHeaderSubTotal'),
|
|
80
|
-
// width: '5%',
|
|
81
|
-
// },
|
|
82
|
-
// {
|
|
83
|
-
// label: t('tableColumnHeaderTaxValue'),
|
|
84
|
-
// width: '5%',
|
|
85
|
-
// },
|
|
86
|
-
// {
|
|
87
|
-
// label: t('tableColumnHeaderDiscountPrice'),
|
|
88
|
-
// width: '5%',
|
|
89
|
-
// },
|
|
90
|
-
// {
|
|
91
|
-
// label: t('tableColumnHeaderTotalPrice'),
|
|
92
|
-
// width: '5%',
|
|
93
|
-
// },
|
|
94
|
-
// {
|
|
95
|
-
// label: t('tableColumnHeaderCategory'),
|
|
96
|
-
// width: '5%',
|
|
97
|
-
// },
|
|
98
|
-
// {
|
|
99
|
-
// label: t('tableColumnHeaderActions'),
|
|
100
|
-
// width: '5%',
|
|
101
|
-
// },
|
|
102
|
-
// ];
|
|
103
|
-
// const totalPagePerRecord = calculatePages(count, pageLimit);
|
|
16
|
+
var _a = (0, context_1.usePreferenceStateContext)(), headerTabs = _a.headerTabs, activeTab = _a.activeTab;
|
|
104
17
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
105
18
|
react_1.default.createElement(vista_dashboard_tabs_v1_1.VistaDashboardTabsV1, { headerTabs: headerTabs, heading: 'Heading' }, constants_1.dashboardTabsMap[activeTab]),
|
|
106
19
|
react_1.default.createElement(generate_toast_1.VistaToaster, null)));
|