-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groups #41
Groups #41
Conversation
app/AddDeleteGroupMembers.js
Outdated
@@ -0,0 +1,118 @@ | |||
import React, { Component } from 'react'; | |||
import { endpoint } from './endpoint.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem like you use endpoint here. Could you remove it?
app/GroupMap.js
Outdated
@@ -1,63 +1,204 @@ | |||
import React, { Component } from 'react'; | |||
import { endpoint } from './endpoint.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think endpoint is being used here anymore either.
app/CreateGroup.js
Outdated
@@ -69,7 +69,7 @@ export default class CreateGroup extends Component { | |||
return response.json(); | |||
}) | |||
.then((friends) => { | |||
console.log(friends); | |||
console.log('Successful Post'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this console log please
app/FriendMap.js
Outdated
data: {privacy: privacy} | ||
}) | ||
.then(({data}) => { | ||
console.log('Succesfull Update', data.privacy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this console.log please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments--forgotten console logs, unneeded dependencies, etc. Otherwise, looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Able to Add/Delete Friends from groups
Able to change privacy settings of groups
Able to change privacy settings for friends
Removed unnecessary console logs