Fix propTypes
This commit is contained in:
parent
86833b5276
commit
4774dcda11
|
@ -1,4 +1,3 @@
|
|||
import PropTypes from 'prop-types';
|
||||
import ScheduleLoader from './ScheduleLoader.jsx';
|
||||
import { langs } from './constants.js';
|
||||
import { useMemo, useState } from 'react';
|
||||
|
@ -36,8 +35,3 @@ export default function ScheduleChooser() {
|
|||
<ScheduleLoader year={year} lang={lang} />
|
||||
</>);
|
||||
}
|
||||
|
||||
ScheduleChooser.propTypes = {
|
||||
year: PropTypes.number,
|
||||
lang: PropTypes.string,
|
||||
};
|
||||
|
|
|
@ -27,6 +27,6 @@ export default function ScheduleLoader({
|
|||
}
|
||||
|
||||
ScheduleLoader.propTypes = {
|
||||
year: PropTypes.number,
|
||||
lang: PropTypes.string,
|
||||
year: PropTypes.number.isRequired,
|
||||
lang: PropTypes.string.isRequired,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue