Skip to content

Commit

Permalink
connected back to heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeberg committed Jul 10, 2018
1 parent ab16604 commit 955b1b5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/components/DonorList.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { Item } from 'semantic-ui-react';

// const heroku = "https://team-cheese-backend.herokuapp.com/all";
const local = "http://localhost:3000/all";
const heroku = "https://team-cheese-backend.herokuapp.com/all";
// const local = "http://localhost:3000/all";

class Donors extends React.Component {
render() {
Expand Down Expand Up @@ -37,7 +37,7 @@ class DonorList extends React.Component {
}

componentDidMount = () => {
fetch(local)
fetch(heroku)
.then(response => response.json())
.then(data => {
this.setState({ data })
Expand Down
6 changes: 3 additions & 3 deletions src/components/DonorRegister.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import DatePicker from 'react-datepicker';
import moment from 'moment';
import 'react-datepicker/dist/react-datepicker.css';

// const heroku = "https://team-cheese-backend.herokuapp.com/adddonor";
const local = "http://localhost:3000/adddonor";
const heroku = "https://team-cheese-backend.herokuapp.com/adddonor";
// const local = "http://localhost:3000/adddonor";

class DonationRegister extends React.Component {

Expand Down Expand Up @@ -50,7 +50,7 @@ class DonationRegister extends React.Component {
}

handleSubmit = () => {
fetch(local, {
fetch(heroku, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down
6 changes: 3 additions & 3 deletions src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { withRouter } from 'react-router-dom';
import { Grid, Image, List } from 'semantic-ui-react';


// const heroku = "https://team-cheese-backend.herokuapp.com/home";
const local = "http://localhost:3000/home";
const heroku = "https://team-cheese-backend.herokuapp.com/home";
// const local = "http://localhost:3000/home";

class VolunteerListItem extends React.Component {

Expand Down Expand Up @@ -83,7 +83,7 @@ class Home extends Component {
}

componentDidMount = () => {
fetch(local)
fetch(heroku)
.then(response => response.json())
.then(data => {
let listItems = []
Expand Down
6 changes: 3 additions & 3 deletions src/components/VolunteerRegister.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { Component } from 'react'
import { withRouter } from 'react-router-dom';
import { Button, Form } from 'semantic-ui-react';

// const heroku = "https://team-cheese-backend.herokuapp.com/addvolunteer";
const local = "http://localhost:3000/addvolunteer";
const heroku = "https://team-cheese-backend.herokuapp.com/addvolunteer";
// const local = "http://localhost:3000/addvolunteer";

class VolunteerRegister extends Component {

Expand Down Expand Up @@ -39,7 +39,7 @@ class VolunteerRegister extends Component {
}

handleSubmit = () => {
fetch(local, {
fetch(heroku, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down

0 comments on commit 955b1b5

Please sign in to comment.