-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from adhocteam/js-225-author-resubmits-report
Authors can resubmit a report for approval
- Loading branch information
Showing
33 changed files
with
681 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
export const NOT_STARTED = 'Not started'; | ||
export const IN_PROGRESS = 'In progress'; | ||
export const COMPLETE = 'Complete'; | ||
export const SUBMITTED = 'Submitted'; | ||
export const APPROVED = 'Approved'; | ||
export const NEEDS_ACTION = 'Needs Action'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
frontend/src/pages/ActivityReport/Pages/Review/Approver/Approved.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const Approved = ({ | ||
additionalNotes, | ||
managerNotes, | ||
}) => ( | ||
<> | ||
<h2>Report approved</h2> | ||
<div className="smart-hub--creator-notes"> | ||
<p> | ||
<span className="text-bold">Creator notes</span> | ||
<br /> | ||
<br /> | ||
{ additionalNotes || 'No creator notes' } | ||
</p> | ||
</div> | ||
<div className="smart-hub--creator-notes margin-top-2"> | ||
<p> | ||
<span className="text-bold">Manager notes</span> | ||
<br /> | ||
<br /> | ||
{ managerNotes || 'No manager notes' } | ||
</p> | ||
</div> | ||
</> | ||
); | ||
|
||
Approved.propTypes = { | ||
additionalNotes: PropTypes.string, | ||
managerNotes: PropTypes.string, | ||
}; | ||
|
||
Approved.defaultProps = { | ||
additionalNotes: '', | ||
managerNotes: '', | ||
}; | ||
|
||
export default Approved; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.