Skip to content

Commit 0d677c0

Browse files
authored
Merge pull request #257 from fedspendingtransparency/fix/homepage-card-button
Fix/homepage card button
2 parents 03a5ded + d62c440 commit 0d677c0

143 files changed

Lines changed: 585 additions & 581 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components/cards/CardButton.jsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const propTypes = {
2121
children: PropTypes.oneOfType([
2222
PropTypes.string,
2323
PropTypes.object
24-
])
24+
]),
25+
disabled: PropTypes.bool
2526
};
2627

2728
const CardButton = ({
@@ -35,7 +36,8 @@ const CardButton = ({
3536
children,
3637
backgroundColor,
3738
buttonSize,
38-
textAlignment
39+
textAlignment,
40+
disabled = false
3941
}) => {
4042
const variantMapper = {
4143
primary: "primary",
@@ -70,7 +72,8 @@ const CardButton = ({
7072
buttonSize="md"
7173
buttonType={variantMapper[variant] === undefined ? "secondary" : variantMapper[variant]}
7274
backgroundColor="light"
73-
textAlignment="center" />
75+
textAlignment="center"
76+
disabled={disabled} />
7477
</div>
7578
);
7679
}
@@ -90,7 +93,8 @@ const CardButton = ({
9093
buttonSize={buttonSize}
9194
textAlignment={textAlignment}
9295
buttonType={variantMapper[variant] === undefined ? "secondary" : variantMapper[variant]}
93-
backgroundColor={backgroundColor} />
96+
backgroundColor={backgroundColor}
97+
disabled={disabled} />
9498
</div>
9599
)
96100
: (
@@ -106,7 +110,8 @@ const CardButton = ({
106110
buttonSize={buttonSize}
107111
textAlignment={textAlignment}
108112
buttonType={variantMapper[variant] === undefined ? "secondary" : variantMapper[variant]}
109-
backgroundColor={backgroundColor} />
113+
backgroundColor={backgroundColor}
114+
disabled={disabled} />
110115
</div>
111116
)}
112117
</div>

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1161.18fb5bf0.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1161.bf7e733a.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1294.0f4be67e.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1294.13fcf4b4.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/148.33512a7e.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/148.7d5a8b1c.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)