From b62e07c7846d8a6ed6bd88426dc436b6b1797d4f Mon Sep 17 00:00:00 2001 From: Lvyshnevska Date: Mon, 23 Oct 2023 13:35:32 +0200 Subject: [PATCH] prop types added --- FrontEnd/src/components/landing-page/banner/Banner.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FrontEnd/src/components/landing-page/banner/Banner.js b/FrontEnd/src/components/landing-page/banner/Banner.js index 760e2048f..5041b58d4 100644 --- a/FrontEnd/src/components/landing-page/banner/Banner.js +++ b/FrontEnd/src/components/landing-page/banner/Banner.js @@ -1,6 +1,7 @@ import './Banner.css'; import Ellipses from '../ellipses/Ellipses'; import { Link } from 'react-router-dom'; +import { PropTypes } from 'prop-types'; const MainBanner = (props) => { @@ -86,4 +87,7 @@ const MainBanner = (props) => { ); }; -export default MainBanner; \ No newline at end of file +export default MainBanner; + +MainBanner.propTypes = { + isAuthorized: PropTypes.bool.isRequired};