-
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
bug-fix for materialize modals #43
bug-fix for materialize modals #43
Conversation
…t materialize modal bug - Refactored code by implementingmore Jsdocs
@@ -3,7 +3,7 @@ import 'redux-notifications/lib/styles.css'; | |||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | |||
import Root from './components/Root.jsx'; | |||
import LandingPage from './components/container/LandingPage.jsx'; | |||
import Login from './components/presentation/authentication/SignInPage.jsx'; | |||
import SignInPage from './components/presentation/authentication/SignInPage.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.
Line 6 exceeds the maximum line length of 80 max-len
Unexpected use of file extension "jsx" for "./components/presentation/authentication/SignInPage.jsx" import/extensions
border: 1px solid transparent; | ||
font-size: 16px; | ||
font-weight: bold; | ||
|
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.
Line contains trailing whitespace
border-radius: 2px; | ||
border: 1px solid transparent; | ||
font-size: 16px; | ||
font-weight: bold; |
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.
Line should be indented with spaces, not tabs
padding-bottom: 10px; | ||
border-radius: 2px; | ||
border: 1px solid transparent; | ||
font-size: 16px; |
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.
Line should be indented with spaces, not tabs
color: rgb(255, 255, 255); | ||
padding-bottom: 10px; | ||
border-radius: 2px; | ||
border: 1px solid transparent; |
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.
Line should be indented with spaces, not tabs
@@ -330,10 +330,23 @@ i.medium { | |||
.loan-button { | |||
margin-right: 14px !important; | |||
} | |||
.btn-google { | |||
background-color: #dd4b39; | |||
.btn-google, .google-btn{ |
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.
Each selector in a comma sequence should be on its own single line
Opening curly brace {
should be preceded by one space
import { changeUserLevelAction } from | ||
'../../../../actions/admin/changeUserLevel'; | ||
import { getUserLevelListAction } from '../../../../actions/admin/getUserLevelList'; | ||
import { changeUserLevelAction } from '../../../../actions/admin/changeUserLevel'; |
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.
Line 6 exceeds the maximum line length of 80 max-len
Missing file extension for "../../../../actions/admin/changeUserLevel" import/extensions
from '../../../../actions/admin/getUserLevelList'; | ||
import { changeUserLevelAction } from | ||
'../../../../actions/admin/changeUserLevel'; | ||
import { getUserLevelListAction } from '../../../../actions/admin/getUserLevelList'; |
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.
Line 5 exceeds the maximum line length of 80 max-len
Missing file extension for "../../../../actions/admin/getUserLevelList" import/extensions
@@ -162,19 +169,18 @@ class SignInPage extends Component { | |||
<a className="btn btn-social btn-google"> | |||
<span className="fa fa-google" /> | |||
<GoogleLogin | |||
className="google-btn" |
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.
Expected indentation of 24 space characters but found 23 react/jsx-indent-props
return this.props.history.push('/admin'); | ||
.then((response) => { | ||
if (response.success && response.isAdmin) { | ||
return (this.props.history.push('/admin')); |
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.
'history' is missing in props validation react/prop-types
'history.push' is missing in props validation react/prop-types
@@ -3,7 +3,7 @@ import 'redux-notifications/lib/styles.css'; | |||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | |||
import Root from './components/Root.jsx'; | |||
import LandingPage from './components/container/LandingPage.jsx'; | |||
import Login from './components/presentation/authentication/SignInPage.jsx'; | |||
import SignInPage from './components/presentation/authentication/SignInPage.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.
Line 6 exceeds the maximum line length of 80 max-len
Unexpected use of file extension "jsx" for "./components/presentation/authentication/SignInPage.jsx" import/extensions
border: 1px solid transparent; | ||
font-size: 16px; | ||
font-weight: bold; | ||
|
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.
Line contains trailing whitespace
border-radius: 2px; | ||
border: 1px solid transparent; | ||
font-size: 16px; | ||
font-weight: bold; |
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.
Line should be indented with spaces, not tabs
padding-bottom: 10px; | ||
border-radius: 2px; | ||
border: 1px solid transparent; | ||
font-size: 16px; |
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.
Line should be indented with spaces, not tabs
color: rgb(255, 255, 255); | ||
padding-bottom: 10px; | ||
border-radius: 2px; | ||
border: 1px solid transparent; |
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.
Line should be indented with spaces, not tabs
@@ -330,10 +330,23 @@ i.medium { | |||
.loan-button { | |||
margin-right: 14px !important; | |||
} | |||
.btn-google { | |||
background-color: #dd4b39; | |||
.btn-google, .google-btn{ |
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.
Each selector in a comma sequence should be on its own single line
Opening curly brace {
should be preceded by one space
import { changeUserLevelAction } from | ||
'../../../../actions/admin/changeUserLevel'; | ||
import { getUserLevelListAction } from '../../../../actions/admin/getUserLevelList'; | ||
import { changeUserLevelAction } from '../../../../actions/admin/changeUserLevel'; |
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.
Line 6 exceeds the maximum line length of 80 max-len
Missing file extension for "../../../../actions/admin/changeUserLevel" import/extensions
from '../../../../actions/admin/getUserLevelList'; | ||
import { changeUserLevelAction } from | ||
'../../../../actions/admin/changeUserLevel'; | ||
import { getUserLevelListAction } from '../../../../actions/admin/getUserLevelList'; |
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.
Line 5 exceeds the maximum line length of 80 max-len
Missing file extension for "../../../../actions/admin/getUserLevelList" import/extensions
@@ -162,19 +169,18 @@ class SignInPage extends Component { | |||
<a className="btn btn-social btn-google"> | |||
<span className="fa fa-google" /> | |||
<GoogleLogin | |||
className="google-btn" |
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.
Expected indentation of 24 space characters but found 23 react/jsx-indent-props
return this.props.history.push('/admin'); | ||
.then((response) => { | ||
if (response.success && response.isAdmin) { | ||
return (this.props.history.push('/admin')); |
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.
'history' is missing in props validation react/prop-types
'history.push' is missing in props validation react/prop-types
Description
The current iteration of materialize css has an issue with overlay from modals causing breakings errors. To overcome this problem I have installed react 16 as advised by a github forum.
https://github.com/react-materialize/react-materialize/issues/433
Types of changes
Checklist: