@smart-react-components/ui 2.0.0-alpha-126 → 2.0.0-alpha-128
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.
|
@@ -9,6 +9,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
9
9
|
const WaveEffect_1 = __importDefault(require("../WaveEffect"));
|
|
10
10
|
const PaginationItemElement_1 = __importDefault(require("../components/Pagination/PaginationItemElement"));
|
|
11
11
|
const PaginationLink = (props) => {
|
|
12
|
+
var _a;
|
|
12
13
|
const { children, handleOnClick, isActive } = (0, useLink_1.default)({
|
|
13
14
|
children: props.children,
|
|
14
15
|
isDisabled: props.isDisabled,
|
|
@@ -19,7 +20,7 @@ const PaginationLink = (props) => {
|
|
|
19
20
|
});
|
|
20
21
|
const AnchorEl = (react_1.default.createElement(A_1.default, Object.assign({}, props.elementProps, { href: props.to, onClick: handleOnClick }), children));
|
|
21
22
|
const El = props.hasWaveEffect ? react_1.default.createElement(WaveEffect_1.default, { palette: props.waveEffectPalette }, AnchorEl) : AnchorEl;
|
|
22
|
-
return (react_1.default.createElement(PaginationItemElement_1.default, { isActive: isActive, isDisabled: props.isDisabled, isFixedSize: props.isFixedSize, isOutline: props.isOutline, isSoft: props.isSoft, palette: props.palette, shape: props.shape }, El));
|
|
23
|
+
return (react_1.default.createElement(PaginationItemElement_1.default, { isActive: (_a = props.isActive) !== null && _a !== void 0 ? _a : isActive, isDisabled: props.isDisabled, isFixedSize: props.isFixedSize, isOutline: props.isOutline, isSoft: props.isSoft, palette: props.palette, shape: props.shape }, El));
|
|
23
24
|
};
|
|
24
25
|
PaginationLink.defaultProps = {
|
|
25
26
|
isExact: true,
|