Fix propTypes

This commit is contained in:
Vencislav Atanasov 2024-09-22 02:42:16 +03:00
parent 86833b5276
commit 4774dcda11
2 changed files with 2 additions and 8 deletions

View File

@ -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,
};

View File

@ -27,6 +27,6 @@ export default function ScheduleLoader({
}
ScheduleLoader.propTypes = {
year: PropTypes.number,
lang: PropTypes.string,
year: PropTypes.number.isRequired,
lang: PropTypes.string.isRequired,
};