Skip to content

Commit

Permalink
refactor: tagline is mandatory in commit button
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum committed Apr 17, 2024
1 parent a8f093b commit 708b1a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
1 change: 0 additions & 1 deletion public/scripts/commit-button-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ <h3>Commit button example</h3>
modalMargin: "2%",
lookAndFeel: "modal",
disabled: false,
tagline: true,
buttonStyle: {
minWidth: "100px",
minHeight: "200px",
Expand Down
19 changes: 5 additions & 14 deletions src/components/widgets/commitButton/CommitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,11 @@ export function CommitButton() {
"iframe"
);
}}
{...(props.tagline
? {
tagline: true,
onTaglineClick: () => {
PurchaseOverviewModal({
modalMargin
}).renderTo(
window.parent,
renderToSelector || "body",
"iframe"
);
}
}
: { tagline: false })}
onTaglineClick={() => {
PurchaseOverviewModal({
modalMargin
}).renderTo(window.parent, renderToSelector || "body", "iframe");
}}
/>
</>
);
Expand Down

0 comments on commit 708b1a9

Please sign in to comment.