diff --git a/app/components/Giving.jsx b/app/components/AddFunder.jsx
similarity index 69%
rename from app/components/Giving.jsx
rename to app/components/AddFunder.jsx
index 67a4276..70c025e 100644
--- a/app/components/Giving.jsx
+++ b/app/components/AddFunder.jsx
@@ -9,16 +9,14 @@ import web3 from "Embark/web3";
const { addGiver, numberOfPledgeAdmins, getPledgeAdmin } = LiquidPledgingMock.methods;
const hoursToSeconds = hours => hours * 60 * 60;
-const createGiver = async (name, url, commitTime) => {
-}
-const Giving = () => (
+const AddFunder = () => (
{
- const { giverName, giverProfile, commitTime } = values;
+ const { funderName, funderProfile, commitTime } = values;
const account = await web3.eth.getCoinbase();
- const args = [giverName, giverProfile, commitTime, 0];
+ const args = [funderName, funderProfile, commitTime, 0];
addGiver(...args)
.estimateGas({ from: account })
.then(async gas => {
@@ -40,26 +38,26 @@ const Giving = () => (
}) => (
)}
)
-export default Giving;
+export default AddFunder;
diff --git a/app/dapp.js b/app/dapp.js
index 33de943..012a063 100644
--- a/app/dapp.js
+++ b/app/dapp.js
@@ -3,7 +3,7 @@ import EmbarkJS from 'Embark/EmbarkJS';
import LPVault from 'Embark/contracts/LPVault';
import LiquidPledgingMock from 'Embark/contracts/LiquidPledgingMock';
import web3 from "Embark/web3";
-import Giving from './components/Giving';
+import AddFunder from './components/AddFunder';
const { getNetworkType } = web3.eth.net;
@@ -16,7 +16,6 @@ class App extends React.Component {
componentDidMount(){
EmbarkJS.onReady(async (err) => {
getNetworkType().then(network => {
- //TODO add window.ethereum.enable();
const { environment } = EmbarkJS
this.setState({ network, environment })
});
@@ -26,7 +25,7 @@ class App extends React.Component {
render() {
return (
)
}