@@ -9,7 +9,12 @@ import messages from '../../../courseware/course/course-exit/messages';
99import { logClick } from '../../../courseware/course/course-exit/utils' ;
1010import { useModel } from '../../../generic/model-store' ;
1111
12- const DashboardFootnoteLink = ( { variant, content } ) => {
12+ interface LinkProps {
13+ variant : string ,
14+ content : { destination : string }
15+ }
16+
17+ const DashboardFootnoteLink : React . FC < LinkProps > = ( { variant, content } ) => {
1318 const intl = useIntl ( ) ;
1419 const { courseId } = useSelector ( state => state . courseware ) ;
1520 const { org } = useModel ( 'courseHomeMeta' , courseId ) ;
@@ -27,24 +32,15 @@ const DashboardFootnoteLink = ({ variant, content }) => {
2732 ) ;
2833} ;
2934
30- DashboardFootnoteLink . propTypes = {
31- variant : PropTypes . string . isRequired ,
32- content : PropTypes . shape ( {
33- destination : PropTypes . string . isRequired ,
34- } ) . isRequired ,
35- } ;
35+ interface PluginProps {
36+ variant : string
37+ }
3638
37- const DashboardFootnoteLinkPluginSlot = ( { variant } ) => {
39+ export const DashboardFootnoteLinkPluginSlot : React . FC < PluginProps > = ( { variant } ) => {
3840 const destination = `${ getConfig ( ) . LMS_BASE_URL } /dashboard` ;
3941 return (
4042 < PluginSlot id = "org.openedx.frontend.learning.course_exit_dashboard_footnote_link.v1" >
4143 < DashboardFootnoteLink variant = { variant } content = { { destination } } />
4244 </ PluginSlot >
4345 ) ;
4446} ;
45-
46- DashboardFootnoteLinkPluginSlot . propTypes = {
47- variant : PropTypes . string . isRequired ,
48- } ;
49-
50- export default DashboardFootnoteLinkPluginSlot ;
0 commit comments