Skip to content

Commit 879b8bf

Browse files
author
Vikas Agarwal
committed
fix: github#1172-Improve UX for Close Task button - implemented changes for edit screen as well
1 parent e87415a commit 879b8bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,10 +1318,10 @@ class ChallengeEditor extends Component {
13181318
if (validationErrors.length === 0) {
13191319
closeTaskModal = (
13201320
<ConfirmationModal
1321-
title='Close Task Confirmation'
1321+
title='Complete Task Confirmation'
13221322
message={
13231323
<p>
1324-
Are you sure want to close task <strong>"{challenge.name}"</strong> with the prize <strong>${taskPrize}</strong> for <strong>{assignedMember}</strong>?
1324+
Are you sure want to complete task <strong>"{challenge.name}"</strong> with the prize <strong>${taskPrize}</strong> for <strong>{assignedMember}</strong>?
13251325
</p>
13261326
}
13271327
theme={theme}
@@ -1417,7 +1417,7 @@ class ChallengeEditor extends Component {
14171417
</div>
14181418
{isTask && (
14191419
<div className={styles.button}>
1420-
<PrimaryButton text={'Close Task'} type={'danger'} onClick={this.openCloseTaskConfirmation} />
1420+
<PrimaryButton text={'Mark Complete'} type={'success'} onClick={this.openCloseTaskConfirmation} />
14211421
</div>
14221422
)}
14231423
</div>}

0 commit comments

Comments
 (0)