This repository was archived by the owner on Jun 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
components/ContentDropdown Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import DropdownButton from 'react-bootstrap/lib/DropdownButton';
55import MenuItem from 'react-bootstrap/lib/MenuItem' ;
66import LocaleFormattedMessage from 'components/LocaleFormattedMessage' ;
77import { loadTranslations } from 'redux/actions/options' ;
8- import { translationType } from 'types' ;
8+ import { contentType } from 'types' ;
99
1010const style = require ( './style.scss' ) ;
1111
@@ -30,7 +30,7 @@ class ContentDropdown extends Component {
3030 static propTypes = {
3131 onOptionChange : PropTypes . func . isRequired ,
3232 content : PropTypes . arrayOf ( PropTypes . number ) . isRequired ,
33- translations : PropTypes . arrayOf ( translationType ) ,
33+ translations : PropTypes . arrayOf ( contentType ) ,
3434 loadTranslations : PropTypes . func . isRequired ,
3535 className : PropTypes . string
3636 } ;
Original file line number Diff line number Diff line change 1+ import { PropTypes } from 'react' ;
2+
3+ export default PropTypes . shape ( {
4+ id : PropTypes . number ,
5+ authorName : PropTypes . string ,
6+ languageName : PropTypes . string
7+ } ) ;
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ export { default as wordType } from './wordType';
88export { default as matchType } from './matchType' ;
99export { default as recitationType } from './recitationType' ;
1010export { default as translationType } from './translationType' ;
11+ export { default as contentType } from './contentType' ;
You can’t perform that action at this time.
0 commit comments