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

react/redux admin dashboard #2

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

react/redux admin dashboard #2

wants to merge 36 commits into from

Conversation

forsaken1
Copy link
Owner

No description provided.

@gEndelf
Copy link

gEndelf commented Jun 27, 2019

@forsaken1

React.js code review notes:

  • add eslint
  • add PropTypes
  • fix conflict

@@ -0,0 +1,30 @@
import React, { Component } from "react";

class City extends Component {
Copy link

Choose a reason for hiding this comment

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

@forsaken1

  • make component refactoring (City/Team/User). Look like - it can be single component EditableLabel
  • add PropTypes
  • don't use data structures - which will be not used (data...). Component has to accept only required data, nothing more

};
}

componentDidMount() {
Copy link

Choose a reason for hiding this comment

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

@forsaken1

  • add error handler
  • extract logic into function or into app state (see redux)


import "../styles/Result.css"

class Result extends Component {
Copy link

Choose a reason for hiding this comment

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

@forsaken1

  • user props, don't use state in container component, just props (you don't need to edit anything here)
  • move component into .../containers/Results.js

@forsaken1 forsaken1 changed the title start admin dashboard react/redux admin dashboard Jul 9, 2019
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.

2 participants