- Adds a non-passing cert learner course exit screen - Moves all the logic about what course-exit mode we're in into a utility method in the course-exit folder - Moves all the logic about how the 'Next' button should read into a utility method in the course-exit folder
22 lines
522 B
JavaScript
22 lines
522 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
function Footnote({ icon, text }) {
|
|
return (
|
|
<div className="row w-100 mx-0 my-4 justify-content-center">
|
|
<p className="text-gray-700">
|
|
<FontAwesomeIcon icon={icon} style={{ width: '20px' }} />
|
|
{text}
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
Footnote.propTypes = {
|
|
icon: PropTypes.shape({}).isRequired,
|
|
text: PropTypes.node.isRequired,
|
|
};
|
|
|
|
export default Footnote;
|