diff --git a/src/Screens/HomeScreen.js b/src/Screens/HomeScreen.js index b2633fe..c8ab791 100644 --- a/src/Screens/HomeScreen.js +++ b/src/Screens/HomeScreen.js @@ -4,10 +4,8 @@ import { Link } from "react-router-dom"; import Button from "react-bootstrap/Button"; import { Col, Container, Nav, Navbar, Row } from "react-bootstrap"; import Project from "../components/Project"; -import { FaPlus } from "react-icons/fa6"; import Loader from "../components/Loader"; import { LinkContainer } from "react-router-bootstrap"; -import web3 from "../ethereum/web3"; const HomeScreen = () => { const [projectList, setProjectList] = useState([]); const [isLoading, setIsLoading] = useState(0); @@ -18,7 +16,6 @@ const HomeScreen = () => { const newProjectList = await factory.methods .getDeployedProjects() .call(); - console.log(newProjectList); setProjectList(newProjectList); } catch (err) { console.log(err.message); @@ -39,22 +36,19 @@ const HomeScreen = () => { ]; return ( <> - + - - - {categories.map((category) => { - return ( - - - - ); - })} - + {categories.map((category, id) => { + return ( + + + + ); + })}
diff --git a/src/Screens/ProjectScreen.js b/src/Screens/ProjectScreen.js index 8055d77..830f629 100644 --- a/src/Screens/ProjectScreen.js +++ b/src/Screens/ProjectScreen.js @@ -180,7 +180,6 @@ const ProjectScreen = () => { {Object.keys(projectHeader).map((key, id) => { - console.log(key, projectHeader[key], currentProject[key]); return ( //

{key}

diff --git a/src/components/Project.js b/src/components/Project.js index 4efab26..9a82168 100644 --- a/src/components/Project.js +++ b/src/components/Project.js @@ -9,31 +9,31 @@ const Project = ({ project }) => { {project.title} - +
Category: {project.category}
- +
Min. Contribution: {project.minimumContribution} wei
- +
Target Amount: {project.targetAmount} wei
- +
Manager: {project.manager}
- +
{" "} Project Address: diff --git a/src/ethereum/factory.js b/src/ethereum/factory.js index 769c04b..f40cc58 100644 --- a/src/ethereum/factory.js +++ b/src/ethereum/factory.js @@ -1,7 +1,6 @@ import web3 from "./web3"; import ProjectFactory from "./build/ProjectFactory.json"; - -console.log(process.env.REACT_APP_DEPLOYED_FACTORY_ADDRESS); +console.log("FACTORY.JS Window.web3", window.web3); const instance = new web3.eth.Contract( ProjectFactory.abi, process.env.REACT_APP_DEPLOYED_FACTORY_ADDRESS diff --git a/src/ethereum/web3.js b/src/ethereum/web3.js index 3650895..63c548f 100644 --- a/src/ethereum/web3.js +++ b/src/ethereum/web3.js @@ -1,6 +1,6 @@ import Web3 from "web3"; let web3; -console.log(Window.web3); +console.log("WEB3.JS window.web3", window.web3); if (window.web3 !== undefined) { web3 = new Web3(window.web3.currentProvider); } else {