Skip to content

react/redux admin dashboard#2

Open
forsaken1 wants to merge 36 commits into
masterfrom
feature/admin
Open

react/redux admin dashboard#2
forsaken1 wants to merge 36 commits into
masterfrom
feature/admin

Conversation

@forsaken1
Copy link
Copy Markdown
Owner

No description provided.

@gEndelf
Copy link
Copy Markdown

gEndelf commented Jun 27, 2019

@forsaken1

React.js code review notes:

  • add eslint
  • add PropTypes
  • fix conflict

Comment thread src/javascripts/components/City.js Outdated
@@ -0,0 +1,30 @@
import React, { Component } from "react";

class City extends Component {
Copy link
Copy Markdown

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

Comment thread src/javascripts/components/Race.js Outdated
};
}

componentDidMount() {
Copy link
Copy Markdown

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)

Comment thread src/javascripts/components/Result.js Outdated

import "../styles/Result.css"

class Result extends Component {
Copy link
Copy Markdown

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