-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Vendor review approval modal content edit and close button fix (#…
- Loading branch information
Showing
7 changed files
with
142 additions
and
94 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
51 changes: 51 additions & 0 deletions
51
client/components/CandidateReview/CandidateModals/NotApprovedModal/index.jsx
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,51 @@ | ||
import React from 'react'; | ||
import BasicModal from '../../../common/BasicModal'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; | ||
import PropTypes from 'prop-types'; | ||
import '../common.css'; | ||
|
||
const NotApprovedModal = ({ handleAction = () => {}, githubUrl = '#' }) => { | ||
return ( | ||
<BasicModal | ||
show={true} | ||
centered={true} | ||
closeButton={false} | ||
content={ | ||
<> | ||
<p className="review-confirmation-content">Thank you for reviewing</p> | ||
<p className="review-confirmation-share"> | ||
if you haven’t opened any issues yet, please{' '} | ||
<a href={githubUrl} target="_blank" rel="noreferrer"> | ||
open an issue describing why this is not approved. | ||
</a> | ||
</p> | ||
</> | ||
} | ||
dialogClassName="review-confirmation" | ||
actions={[ | ||
{ | ||
label: 'Close', | ||
onClick: handleAction | ||
} | ||
]} | ||
title={ | ||
<div className="review-confirmation-title"> | ||
<FontAwesomeIcon | ||
icon={faExclamationTriangle} | ||
className="review-confirmation-check" | ||
color="orange" | ||
/> | ||
<h1>Thank you!</h1> | ||
</div> | ||
} | ||
/> | ||
); | ||
}; | ||
|
||
NotApprovedModal.propTypes = { | ||
handleAction: PropTypes.func, | ||
githubUrl: PropTypes.string | ||
}; | ||
|
||
export default NotApprovedModal; |
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
52 changes: 0 additions & 52 deletions
52
client/components/CandidateReview/CandidateModals/ThankYouModal/ThankYouModal.css
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.