diff --git a/src/components/pages/republica.js b/src/components/pages/republica.js index faf7b45..8d5de44 100644 --- a/src/components/pages/republica.js +++ b/src/components/pages/republica.js @@ -1,6 +1,3 @@ -import React from "react"; -//import './styles/republica.css' - /* Yo wtf is going on here? LOL Objeticves: @@ -15,6 +12,18 @@ Notes: 2- The idea here is simple: Get the republic name, host, price and photos. All of that is only possible of happening once the API is... something */ +import React from "react"; +//import './styles/republica.css' + +function getRepublicInfo(id) { + //1. send a request to the db + //2. gather info + //3. return the info + //profit? + console.log("le sex") //erase this, plz. + +} + const Header = () => { const title = { color: "white", @@ -34,53 +43,71 @@ const Header = () => { } // NEED API -function republica() { +class republica extends React.Component { + constructor(props) { + super(props); + this.majorMalfunction = gatherRepublicInfo(props.id) //this will return an undefined. Very funny. FIXME. + this.images = this.majorMalfunction.images + this.name = "very funny" //TODO + this.value = "IF YOU SEE THIS, THE DB AIN'T SENDING SHIT" //TODO + this.mainGuy = "SUPER PLACEHOLDER MAN" //TODO + } + - return( -