diff --git a/src/Pages/Home.js b/src/Pages/Home.js index 2ad839baec1eabd782b36dfb2e523637b7d2ad27..9e1ed689888c44d5f3f7ad22d6896f239980ab8d 100755 --- a/src/Pages/Home.js +++ b/src/Pages/Home.js @@ -16,37 +16,37 @@ GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/ -import React, {Component} from 'react'; +import React, { Component } from 'react'; import './Styles/Home.css'; import SearchSection from '../Components/SearchSection'; import SubPages from '../Components/AreasSubPages'; import StatsBar from '../Components/StatsBar'; import Funcionalities from '../Components/Funcionalities'; class App extends Component { - constructor(props){ - super(props); - this.state={ - bannerState: "Recursos" - }; - this.changeBanner = this.changeBanner.bind(this) - } - - changeBanner(parameter){ - this.setState({ - bannerState: parameter - }); - } + constructor(props) { + super(props); + this.state = { + bannerState: "Recursos" + }; + this.changeBanner = this.changeBanner.bind(this) + } + + changeBanner(parameter) { + this.setState({ + bannerState: parameter + }); + } render() { - return ( - <React.Fragment> - <SearchSection function={this.changeBanner} banner={this.state.bannerState}/> - <SubPages banner={this.state.bannerState}/> - <StatsBar/> - <Funcionalities/> - </React.Fragment> - ); + return ( + <React.Fragment> + <SearchSection function={this.changeBanner} banner={this.state.bannerState} /> + <SubPages banner={this.state.bannerState} /> + <StatsBar /> + <Funcionalities /> + </React.Fragment> + ); } - } +} export default App;