Add age message
This commit is contained in:
committed by
Adam Butterworth
parent
0c95e46741
commit
3a0564e8a8
22
src/components/ProfilePage/AgeMessage.jsx
Normal file
22
src/components/ProfilePage/AgeMessage.jsx
Normal 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;
|
||||
Reference in New Issue
Block a user