redux-paginator-immutable 17.0.5 → 17.0.6
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/lib/Info.js +2 -2
- package/package.json +1 -1
- package/src/Info.jsx +2 -2
package/lib/Info.js
CHANGED
|
@@ -21,7 +21,7 @@ var getNumberForm = function getNumberForm(value, one, all) {
|
|
|
21
21
|
return "1 " + one;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
return
|
|
24
|
+
return _utility.words.getNumberTense(value) + " " + all;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
var Info = function Info(_ref) {
|
|
@@ -33,7 +33,7 @@ var Info = function Info(_ref) {
|
|
|
33
33
|
"div",
|
|
34
34
|
{ className: "text-muted" },
|
|
35
35
|
_words2.default.Showing + " ",
|
|
36
|
-
shown === total ?
|
|
36
|
+
shown === total ? _words2.default.All + " - " : shown + " " + _words2.default.Of,
|
|
37
37
|
" " + getNumberForm(total, one, all)
|
|
38
38
|
);
|
|
39
39
|
};
|
package/package.json
CHANGED
package/src/Info.jsx
CHANGED
|
@@ -18,14 +18,14 @@ const getNumberForm = (value : number, one : string, all : string) : string => {
|
|
|
18
18
|
return `1 ${one}`;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
return `${
|
|
21
|
+
return `${x25Words.getNumberTense(value)} ${all}`;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
const Info = ({ shown, total, one, all } : InfoPropTypes) => (
|
|
25
25
|
<div className="text-muted">
|
|
26
26
|
{`${words.Showing} `}
|
|
27
27
|
{
|
|
28
|
-
(shown === total) ? `${
|
|
28
|
+
(shown === total) ? `${words.All} - ` : `${shown} ${words.Of}`
|
|
29
29
|
}
|
|
30
30
|
{` ${getNumberForm(total, one, all)}`}
|
|
31
31
|
</div>
|