-
Notifications
You must be signed in to change notification settings - Fork 5
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/153569529/admin users should be able to change users current level #40
Feature/153569529/admin users should be able to change users current level #40
Conversation
- Administrator can log on to a seperate interface to serve the admin routes. - Higher order component for Admin defined
…web application - Implemented higher order component for admin route - Implemented new Dashboard for admin interface
- Implementation of admin interface to create a book - This interface serves the create book route to create additional books - Errors returned to the app using the notfier in the reducer - Changed css styling for images [Finishes #153214779]
- Modal for edit book implemented - Category wrapper implemented to wrap any functionality with category logic - Naming convention for book changed so as to adopt better naming convention
…tegories on the client side. - Implemented higher ordder component for category lists - Implemented additional Jsdocs - Implemented functionality for Delete books
Delete category implemented [Finishes #153507675, ##153563061, #153507675, ##153561900, #153561888]
- Constructed a materialize table to accept user values and display them to the admin user [Finishes #153569529]
- Implemented change user level modal - Implemented a new route to fetch new user details - Implemented a new route to get a user level list
* | ||
*/ | ||
render() { | ||
const { users } = this.props; |
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.
'users' is assigned a value but never used no-unused-vars
import { Row, Button } from 'react-materialize'; | ||
import { connect } from 'react-redux'; | ||
import ChangeUserLvlModal from '../../presentation/common/modal/ChangeUserLvlModal.jsx'; | ||
import { getSelectedUser } from '../../../actions/admin/getSelectedUser'; |
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.
Unable to resolve path to module '../../../actions/admin/getSelectedUser' import/no-unresolved
Missing file extension for "../../../actions/admin/getSelectedUser" import/extensions
import PropTypes from 'prop-types'; | ||
import { Row, Button } from 'react-materialize'; | ||
import { connect } from 'react-redux'; | ||
import ChangeUserLvlModal from '../../presentation/common/modal/ChangeUserLvlModal.jsx'; |
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.
Unable to resolve path to module '../../presentation/common/modal/ChangeUserLvlModal.jsx' import/no-unresolved
Unexpected use of file extension "jsx" for "../../presentation/common/modal/ChangeUserLvlModal.jsx" import/extensions
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Row, Button } from 'react-materialize'; | ||
import { connect } from 'react-redux'; |
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.
Unable to resolve path to module 'react-redux' import/no-unresolved
Missing file extension for "react-redux" import/extensions
@@ -0,0 +1,91 @@ | |||
import React from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import { Row, Button } from 'react-materialize'; |
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.
Unable to resolve path to module 'react-materialize' import/no-unresolved
Missing file extension for "react-materialize" import/extensions
import { fetchBook } from '../../../../actions/fetchbooks'; | ||
|
||
|
||
import { deleteBookAction } from '../../../../actions/admin/books'; |
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.
Missing file extension for "../../../../actions/admin/books" import/extensions
Unable to resolve path to module '../../../../actions/admin/books' import/no-unresolved
import { connect } from 'react-redux'; | ||
import PropTypes from 'prop-types'; |
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.
Unable to resolve path to module 'prop-types' import/no-unresolved
Missing file extension for "prop-types" import/extensions
@@ -1,9 +1,11 @@ | |||
import React from 'react'; | |||
import ReactTooltip from 'react-tooltip'; | |||
import swal from 'sweetalert2'; | |||
import { Button } from 'react-materialize'; |
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.
Missing file extension for "react-materialize" import/extensions
Unable to resolve path to module 'react-materialize' import/no-unresolved
@@ -1,9 +1,11 @@ | |||
import React from 'react'; | |||
import ReactTooltip from 'react-tooltip'; | |||
import swal from 'sweetalert2'; |
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.
Unable to resolve path to module 'sweetalert2' import/no-unresolved
Missing file extension for "sweetalert2" import/extensions
<div className="book-modal modal-title">Title: {this.props.books.title} </div> | ||
<hr /> | ||
<div className="book-modal">Author: {this.props.books.author}</div> | ||
<div className="book-modal">Description: {this.props.books.description}<span id="bookDescription" /></div> | ||
<div className="book-modal">Description: {this.props.books.description}</div> |
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.
'books.description' is missing in props validation react/prop-types
Description
What does this PR do?
Description of Task to be completed?
Screenshots (if appropriate):
Any background context you want to provide?
What are the relevant pivotal tracker stories?
Types of changes
Checklist: