Skip to content

Commit

Permalink
feature: add "save as draft" button
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Sep 13, 2024
1 parent 5bf8081 commit 54023a1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ export default function CampaignsDetailsPage() {
</div>

<div className={styles.flexRow}>
{campaign.properties.status === 'draft' && (
<button
disabled={submitting}
className={`button button-secondary ${styles.button} ${styles.updateCampaignButton}`}
onClick={updateCampaign}
>
{__('Save as draft', 'give')}
</button>
)}
<button
disabled={submitting}
className={`button button-primary ${styles.button} ${styles.updateCampaignButton}`}
Expand Down

0 comments on commit 54023a1

Please sign in to comment.