From 4774dcda11d2dd224788c4f36764a29d597d47d4 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sun, 22 Sep 2024 02:42:16 +0300 Subject: [PATCH] Fix propTypes --- src/Schedule/ScheduleChooser.jsx | 6 ------ src/Schedule/ScheduleLoader.jsx | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Schedule/ScheduleChooser.jsx b/src/Schedule/ScheduleChooser.jsx index bc18e24..e1091b1 100644 --- a/src/Schedule/ScheduleChooser.jsx +++ b/src/Schedule/ScheduleChooser.jsx @@ -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() { ); } - -ScheduleChooser.propTypes = { - year: PropTypes.number, - lang: PropTypes.string, -}; diff --git a/src/Schedule/ScheduleLoader.jsx b/src/Schedule/ScheduleLoader.jsx index c1b7ee8..2384dec 100644 --- a/src/Schedule/ScheduleLoader.jsx +++ b/src/Schedule/ScheduleLoader.jsx @@ -27,6 +27,6 @@ export default function ScheduleLoader({ } ScheduleLoader.propTypes = { - year: PropTypes.number, - lang: PropTypes.string, + year: PropTypes.number.isRequired, + lang: PropTypes.string.isRequired, };