Co-authored-by: Ahtesham Quraish <ahtesham.quraish@192.168.1.4>
This commit is contained in:
@@ -3,14 +3,15 @@ import { useSelector } from 'react-redux';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Card } from '@openedx/paragon';
|
||||
import { Add as AddIcon } from '@openedx/paragon/icons/es5';
|
||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||
|
||||
import { getStudioHomeData } from '../../../data/selectors';
|
||||
import messages from '../../../messages';
|
||||
|
||||
const ContactAdministrator = ({
|
||||
intl, hasAbilityToCreateCourse, showNewCourseContainer, onClickNewCourse,
|
||||
hasAbilityToCreateCourse, showNewCourseContainer, onClickNewCourse,
|
||||
}) => {
|
||||
const intl = useIntl();
|
||||
const { studioShortName } = useSelector(getStudioHomeData);
|
||||
|
||||
return (
|
||||
@@ -52,10 +53,9 @@ ContactAdministrator.defaultProps = {
|
||||
};
|
||||
|
||||
ContactAdministrator.propTypes = {
|
||||
intl: intlShape.isRequired,
|
||||
hasAbilityToCreateCourse: PropTypes.bool,
|
||||
showNewCourseContainer: PropTypes.bool.isRequired,
|
||||
onClickNewCourse: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export default injectIntl(ContactAdministrator);
|
||||
export default ContactAdministrator;
|
||||
|
||||
Reference in New Issue
Block a user