Changed Theater to use extraClasses prop

extraClasses prop will add classes to the theater div
This commit is contained in:
Camerin Figueroa 2021-09-20 15:12:04 -04:00
parent 32e1d21d15
commit 74121fda81
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const Home = (props) => {
return (
<div className="Home">
<Theater title={title} description={description} h_100/>
<Theater title={title} description={description} extraClasses="h-100"/>
</div>
);
}

View File

@ -4,7 +4,7 @@ import './css/Theater.css';
const Theater = (props) => {
return (
<div className={`theater ${props.peak ? 'peak':''} ${props.h_100 ? 'h-100':''}`}>
<div className={`theater ${props.extraClasses ? props.extraClasses:''}`}>
<div className="theater-bg" style={props.background ? {backgroundImage: `url(${props.background})`} : {}}/>
<div className="theater-content">
<h1>{props.title}</h1>