Add age message

This commit is contained in:
Adam Butterworth
2019-02-26 13:02:09 -05:00
committed by Adam Butterworth
parent 0c95e46741
commit 3a0564e8a8
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';
import { UncontrolledAlert } from 'reactstrap';
function AgeMessage({ accountURL }) {
return (
<UncontrolledAlert color="info">
<h6>Your profile cannot be shared.</h6>
<p>
To share your profile with other edX learners,
you must confirm that you are over the age of 13.
</p>
<a href={accountURL}>Set your date of birth</a>
</UncontrolledAlert>
);
}
AgeMessage.propTypes = {
accountURL: PropTypes.string.isRequired,
};
export default AgeMessage;