Skip to content

Commit

Permalink
Merge pull request #89 from edx/dsheraz/PROD-2273
Browse files Browse the repository at this point in the history
convert all buttons to use variant attr
  • Loading branch information
DawoudSheraz authored Jan 28, 2021
2 parents f6f9092 + 184ce35 commit f40697d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/users/EnrollmentForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,17 @@ export default function EnrollmentForm({
</div>
<div>
<Button
variant="primary"
className={classNames(
'btn-primary mr-3',
'mr-3',
{ disabled: !reason },
)}
onClick={submit}
>
Submit
</Button>
<Button
className="btn-outline-secondary"
variant="outline-secondary"
onClick={closeHandler}
>
Cancel
Expand Down
5 changes: 3 additions & 2 deletions src/users/EntitlementForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,17 @@ export default function EntitlementForm({
</div>
<div>
<Button
variant="primary"
className={classNames(
'btn-primary mr-3',
'mr-3',
{ disabled: !(courseUuid && mode && comments) },
)}
onClick={submit}
>
Submit
</Button>
<Button
className="btn-outline-secondary"
variant="outline-secondary"
onClick={closeHandler}
>
Cancel
Expand Down
2 changes: 1 addition & 1 deletion src/users/Entitlements.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export default function Entitlements({
displayValue: (
<Button
type="button"
variant="outline-primary"
disabled={!result.enrollmentCourseRun}
onClick={() => {
clearCourseSummary();
setEntitlementToReissue(result);
setFormType(REISSUE);
}}
className="btn-outline-primary"
>
Reissue
</Button>
Expand Down

0 comments on commit f40697d

Please sign in to comment.