Skip to content
Snippets Groups Projects
Commit ca90a246 authored by lfr20's avatar lfr20
Browse files

Create new route, the Admin router

parent 2be6ecae
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!40merge admin into develop,!37Merge sistema_admin into Update_Admin_System
......@@ -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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment