Skip to content

Commit a9f97d2

Browse files
authored
FEATURE/HCMPRE-0003 : Button fix (#408)
1 parent f609fc9 commit a9f97d2

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

react/react-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
],
6262
"dependencies": {
6363
"@cyntler/react-doc-viewer": "1.10.3",
64-
"@egovernments/digit-ui-components": "2.0.0-dev-47",
64+
"@egovernments/digit-ui-components": "2.0.0-dev-48",
6565
"@egovernments/digit-ui-svg-components": "2.0.0-dev-01",
6666
"@googlemaps/js-api-loader": "1.13.10",
6767
"@hookform/resolvers": "1.3.7",

react/storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"webpack-cli": "^6.0.1"
4848
},
4949
"dependencies": {
50-
"@egovernments/digit-ui-components": "2.0.0-dev-47",
50+
"@egovernments/digit-ui-components": "2.0.0-dev-48",
5151
"@egovernments/digit-ui-components-css": "2.0.0-dev-12",
5252
"@egovernments/digit-ui-libraries": "2.0.0-dev-11",
5353
"@egovernments/digit-ui-svg-components": "2.0.0-dev-01",

react/ui-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@egovernments/digit-ui-components",
3-
"version": "2.0.0-dev-47",
3+
"version": "2.0.0-dev-48",
44
"license": "MIT",
55
"main": "dist/main.js",
66
"module": "dist/main.js",

react/ui-components/src/molecules/FilterCard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const FilterCard = ({
103103
} ${isOverflowing ? "with-shadow" : ""}`}
104104
>
105105
{primaryActionLabel && onPrimaryPressed && (
106-
<Button label={primaryActionLabel} onClick={onPrimaryPressed} />
106+
<Button label={primaryActionLabel} onClick={onPrimaryPressed} variation="primary"/>
107107
)}
108108

109109
{secondaryActionLabel && onSecondaryPressed && (
@@ -128,7 +128,7 @@ const FilterCard = ({
128128
/>
129129
)}
130130
{primaryActionLabel && onPrimaryPressed && (
131-
<Button label={primaryActionLabel} onClick={onPrimaryPressed} />
131+
<Button label={primaryActionLabel} onClick={onPrimaryPressed} variation="primary"/>
132132
)}
133133
</div>
134134
);

react/ui-components/src/molecules/TimelineMolecule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ const TimelineMolecule = ({
119119
/>
120120
</div>
121121
)}
122-
{Children.map(visibleChildren, (child, index) => (
122+
{visibleChildren.map((child, index) => (
123123
<Timeline
124124
{...child.props}
125-
isLastStep={index === Children.count(visibleChildren) - 1}
125+
isLastStep={index === visibleChildren.length - 1}
126126
isNextActiveStep={nextStep === child}
127127
/>
128128
))}

0 commit comments

Comments
 (0)