@firedesktop/react-base 1.20.0 → 1.20.1
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/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\index.tsx":"1","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\reportWebVitals.ts":"2","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\App.tsx":"3","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\TestLabelFunction.tsx":"4","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\index.ts":"5","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationLoader.tsx":"6","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageLoader.tsx":"7","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\index.ts":"8","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\index.ts":"9","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationManager.ts":"10","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageManager.ts":"11","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Types.ts":"12","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Spin.tsx":"13","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppInput.tsx":"14","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppIcon.tsx":"15","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Toaster.tsx":"16","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\index.ts":"17","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\index.ts":"18","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\index.ts":"19","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\Types.ts":"20","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\fetchWrapper.ts":"21","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppPagination.tsx":"22"},{"size":494,"mtime":1603824492688,"results":"23","hashOfConfig":"24"},{"size":442,"mtime":1605695276101,"results":"25","hashOfConfig":"24"},{"size":
|
|
1
|
+
[{"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\index.tsx":"1","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\reportWebVitals.ts":"2","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\App.tsx":"3","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\TestLabelFunction.tsx":"4","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\index.ts":"5","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationLoader.tsx":"6","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageLoader.tsx":"7","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\index.ts":"8","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\index.ts":"9","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationManager.ts":"10","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageManager.ts":"11","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Types.ts":"12","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Spin.tsx":"13","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppInput.tsx":"14","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppIcon.tsx":"15","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Toaster.tsx":"16","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\index.ts":"17","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\index.ts":"18","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\index.ts":"19","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\Types.ts":"20","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\fetchWrapper.ts":"21","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppPagination.tsx":"22"},{"size":494,"mtime":1603824492688,"results":"23","hashOfConfig":"24"},{"size":442,"mtime":1605695276101,"results":"25","hashOfConfig":"24"},{"size":4881,"mtime":1607544774605,"results":"26","hashOfConfig":"24"},{"size":424,"mtime":1605695276095,"results":"27","hashOfConfig":"24"},{"size":291,"mtime":1605458851566,"results":"28","hashOfConfig":"24"},{"size":1534,"mtime":1605788323697,"results":"29","hashOfConfig":"24"},{"size":1650,"mtime":1605695276100,"results":"30","hashOfConfig":"24"},{"size":167,"mtime":1605458851574,"results":"31","hashOfConfig":"24"},{"size":315,"mtime":1607544774606,"results":"32","hashOfConfig":"24"},{"size":1221,"mtime":1605695276098,"results":"33","hashOfConfig":"24"},{"size":1852,"mtime":1606840214542,"results":"34","hashOfConfig":"24"},{"size":206,"mtime":1606840214535,"results":"35","hashOfConfig":"24"},{"size":848,"mtime":1605695276096,"results":"36","hashOfConfig":"24"},{"size":1387,"mtime":1606148122708,"results":"37","hashOfConfig":"24"},{"size":62572,"mtime":1605695276096,"results":"38","hashOfConfig":"24"},{"size":2228,"mtime":1606061544975,"results":"39","hashOfConfig":"24"},{"size":173,"mtime":1605458851570,"results":"40","hashOfConfig":"24"},{"size":143,"mtime":1605458851577,"results":"41","hashOfConfig":"24"},{"size":112,"mtime":1605695276099,"results":"42","hashOfConfig":"24"},{"size":248,"mtime":1606840214536,"results":"43","hashOfConfig":"24"},{"size":5806,"mtime":1606983244339,"results":"44","hashOfConfig":"24"},{"size":4800,"mtime":1608654368325,"results":"45","hashOfConfig":"24"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},"1g0oopp",{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"89"},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\index.tsx",[],["92","93"],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\reportWebVitals.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\App.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\TestLabelFunction.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationLoader.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageLoader.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationManager.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageManager.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Types.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Spin.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppInput.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppIcon.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Toaster.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\Types.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\fetchWrapper.ts",[],["94","95"],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppPagination.tsx",[],{"ruleId":"96","replacedBy":"97"},{"ruleId":"98","replacedBy":"99"},{"ruleId":"96","replacedBy":"100"},{"ruleId":"98","replacedBy":"101"},"no-native-reassign",["102"],"no-negated-in-lhs",["103"],["102"],["103"],"no-global-assign","no-unsafe-negation"]
|
|
@@ -69,7 +69,10 @@ function AppPagination(_a) {
|
|
|
69
69
|
};
|
|
70
70
|
return (_jsx("nav", __assign({ "aria-label": "Page navigation" }, { children: _jsxs("ul", __assign({ className: "pagination" }, { children: [_jsx("li", __assign({ className: "page-item", onClick: goToFirst }, { children: _jsx("span", __assign({ "aria-hidden": "true" }, { children: _jsx(AppIcon, { name: 'arrow-first' }, void 0) }), void 0) }), void 0),
|
|
71
71
|
_jsx("li", __assign({ className: "page-item disabled", onClick: goToPrev }, { children: _jsx("span", __assign({ "aria-hidden": "true" }, { children: _jsx(AppIcon, { name: 'arrow-prev' }, void 0) }), void 0) }), void 0),
|
|
72
|
-
paginationArray.map(function (page, index) { return (_jsx("li", __assign({ className: "page-item " + (page === activePage ? 'active' : ''), onClick: function () {
|
|
72
|
+
paginationArray.map(function (page, index) { return (_jsx("li", __assign({ className: "page-item " + (page === activePage ? 'active' : ''), onClick: function () {
|
|
73
|
+
if (activePage !== page)
|
|
74
|
+
onPageChange(page);
|
|
75
|
+
}, style: { borderRadius: 5 } }, { children: _jsxs("span", __assign({ "aria-hidden": "true", style: { fontSize: pageFontSize } }, { children: [page, " ", _jsx("span", __assign({ className: "sr-only" }, { children: "(current)" }), void 0)] }), void 0) }), index)); }),
|
|
73
76
|
_jsx("li", __assign({ className: "page-item", onClick: goToMext }, { children: _jsx("span", __assign({ "aria-hidden": "true" }, { children: _jsx(AppIcon, { name: 'arrow-next' }, void 0) }), void 0) }), void 0),
|
|
74
77
|
_jsx("li", __assign({ className: "page-item", onClick: goToLast }, { children: _jsx("span", __assign({ "aria-hidden": "true" }, { children: _jsx(AppIcon, { name: 'arrow-last' }, void 0) }), void 0) }), void 0)] }), void 0) }), void 0));
|
|
75
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppPagination.js","sourceRoot":"","sources":["../../src/lib/components/AppPagination.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAU5B,SAAS,aAAa,CAAC,EAAgG;QAA9F,UAAU,gBAAA,EAAE,YAAY,kBAAA,EAAE,eAAW,EAAX,OAAO,mBAAG,CAAC,KAAA,EAAE,YAAY,kBAAA,EAAE,oBAAiB,EAAjB,YAAY,mBAAG,EAAE,KAAA,EAAE,UAAU,gBAAA;IACvG,IAAM,mBAAmB,GAAG,UAAC,UAAkB,EAAE,YAAoB,EAAE,OAAe,EAAE,UAAkB;QACtG,IAAI,UAAU,EAAE;YACZ,OAAO,UAAU,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;SACpE;aAAM;YACH,OAAO;gBACH,UAAU,EAAE,CAAC;gBACb,eAAe,EAAE,CAAC,CAAC,CAAC;aACvB,CAAC;SACL;IACL,CAAC,CAAC;IAEF,IAA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YrD,CAAC;gBAEF,sBAAI,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,QAAQ,gBACvC,uCAAkB,MAAM,gBACpB,KAAC,OAAO,IAAC,IAAI,EAAE,YAAY,WAAI,YAC5B,YACN;gBAEL,sBAAI,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,QAAQ,gBACvC,uCAAkB,MAAM,gBACpB,KAAC,OAAO,IAAC,IAAI,EAAE,YAAY,WAAI,YAC5B,YACN,aACJ,YACH,CACT,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firedesktop/react-base",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"description": "This is the FireDesktop base package used to support every React Project in this Company.",
|
|
7
7
|
"author": "alessandro.gambaro",
|
|
8
8
|
"repository": "https://firedesktopDevOps@dev.azure.com/firedesktopDevOps/baseFEComponents/_git/baseFEComponents",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@syncfusion/ej2-react-notifications": "18.
|
|
11
|
-
"@syncfusion/ej2-popups": "18.
|
|
10
|
+
"@syncfusion/ej2-react-notifications": "18.4.30",
|
|
11
|
+
"@syncfusion/ej2-popups": "18.4.30"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@babel/cli": "7.12.
|
|
15
|
-
"@babel/core": "7.12.
|
|
14
|
+
"@babel/cli": "7.12.10",
|
|
15
|
+
"@babel/core": "7.12.10",
|
|
16
16
|
"@babel/plugin-proposal-class-properties": "7.12.1",
|
|
17
17
|
"@babel/plugin-transform-arrow-functions": "7.12.1",
|
|
18
18
|
"@babel/preset-typescript": "7.12.7",
|
|
19
19
|
"@testing-library/jest-dom": "5.11.6",
|
|
20
20
|
"@testing-library/react": "11.2.2",
|
|
21
|
-
"@testing-library/user-event": "12.
|
|
22
|
-
"@types/jest": "26.0.
|
|
23
|
-
"@types/node": "14.14.
|
|
21
|
+
"@testing-library/user-event": "12.6.0",
|
|
22
|
+
"@types/jest": "26.0.19",
|
|
23
|
+
"@types/node": "14.14.14",
|
|
24
24
|
"@types/react": "17.0.0",
|
|
25
25
|
"@types/react-dom": "17.0.0",
|
|
26
|
-
"@types/react-redux": "7.1.
|
|
26
|
+
"@types/react-redux": "7.1.12",
|
|
27
27
|
"babel-plugin-minify-builtins": "0.5.0",
|
|
28
28
|
"babel-preset-minify": "0.5.1",
|
|
29
29
|
"copyfiles": "2.4.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": "17.0.1",
|
|
32
32
|
"react-redux": "7.2.2",
|
|
33
33
|
"react-scripts": "4.0.1",
|
|
34
|
-
"typescript": "4.1.
|
|
34
|
+
"typescript": "4.1.3",
|
|
35
35
|
"web-vitals": "1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"last 1 safari version"
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|
package/src/App.tsx
CHANGED
|
@@ -31,7 +31,7 @@ const appReducer = (state = {}, action: any) => {
|
|
|
31
31
|
function App() {
|
|
32
32
|
const [options, setOptions] = useState<{ value: string }[]>([]);
|
|
33
33
|
const [spinning, setSpinning] = useState(false);
|
|
34
|
-
const [activePage, setActivePage] = useState(
|
|
34
|
+
const [activePage, setActivePage] = useState(1);
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
function onGenericServerError(status: number) {
|
|
@@ -123,7 +123,8 @@ function App() {
|
|
|
123
123
|
return (
|
|
124
124
|
|
|
125
125
|
<Provider store={store}>
|
|
126
|
-
<
|
|
126
|
+
<br />
|
|
127
|
+
<Components.AppPagination activePage={activePage} itemsPerPage={7} onPageChange={onPageChange} totalItems={17} maxSize={5} />
|
|
127
128
|
<Components.Spin spinning={spinning} />
|
|
128
129
|
<Components.AppIcon name={'Pin'} className='dark-pink-svg' />
|
|
129
130
|
<TestLabelFunction />
|
|
@@ -90,19 +90,20 @@ function AppPagination({ activePage, itemsPerPage, maxSize = 5, onPageChange, pa
|
|
|
90
90
|
<AppIcon name={'arrow-prev'} />
|
|
91
91
|
</span>
|
|
92
92
|
</li>
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
{/* Middle */}
|
|
95
94
|
{paginationArray.map((page: number, index: number) => (
|
|
96
95
|
<li key={index}
|
|
97
96
|
className={`page-item ${page === activePage ? 'active' : ''}`}
|
|
98
|
-
onClick={() =>
|
|
97
|
+
onClick={() => {
|
|
98
|
+
if (activePage !== page)
|
|
99
|
+
onPageChange(page);
|
|
100
|
+
}}
|
|
99
101
|
style={{ borderRadius: 5 }} >
|
|
100
102
|
<span aria-hidden="true" style={{ fontSize: pageFontSize }}>
|
|
101
103
|
{page} <span className="sr-only">(current)</span>
|
|
102
104
|
</span>
|
|
103
105
|
</li>
|
|
104
106
|
))}
|
|
105
|
-
|
|
106
107
|
{/* Next */}
|
|
107
108
|
<li className="page-item" onClick={goToMext}>
|
|
108
109
|
<span aria-hidden="true">
|