Skip to content
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

Feature/delete nodes #21

Open
wants to merge 8 commits into
base: feature/Pages
Choose a base branch
from

Conversation

jamesOConnell-REDspace
Copy link

definitely needs review, i wasn't sure about the mapState function, what needed to be in the arguments, and what needed to be mapped. But it successfully deletes the odes from the state, and renders properly

@jamesOConnell-REDspace jamesOConnell-REDspace changed the base branch from master to feature/Pages July 23, 2019 13:59
src/app/Nav.js Outdated
@@ -228,8 +228,8 @@ class Nav extends Component {
name="pageTitle"
fullWidth
style={styles.textField}
textareastyle={styles.textStyle}
hinttext="Page Title"
textareastyle={styles.textStyle} //I don't see this prop in the documentation
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments aren't needed.

</Fragment>
)
}
} from "../../store/actions"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import from pages/PageActions. store/action will be deprecated, and will eventually be removed.

}

// NOT SURE WHAT NEEDS TO BE SYNCED HERE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment isn't needed.

This function is mapping the current page in focus to the component's props, along with the scale of the scene.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're not using scale or page in this component you can remove this function

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but mapState needs to exist in order for connect to work properly. What would i do instead?

Copy link

@AMalley AMalley Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass null in its place instead. connect(null, { deleteAllLinks, deleteNode })(NodeFooter)

}

// NOT SURE WHAT NEEDS TO BE SYNCED HERE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're not using scale or page in this component you can remove this function

//id: PropTypes.string.isRequired,
setFocusedLink: PropTypes.func.isRequired,
class NodeFooter extends Component
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having the brace dropped down goes against the convention throughout the rest of the app

Copy link
Collaborator

@ngjmcdonald ngjmcdonald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the spelling mistake and the dropped down brace I think need to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants