Skip to content

Commit 97fcfcf

Browse files
committed
Delete useless construct
1 parent 6cbb876 commit 97fcfcf

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

src/components/content/content.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import React from "react"
22

33
class Content extends React.Component{
44

5-
constructor (props){
6-
super(props);
7-
}
5+
86

97
render(){
108
return (<div><h1>Здесь будет информация</h1></div>);

src/components/homePage/Home.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import React from 'react'
22
import {connect} from 'react-redux';
33

44
class HelloWorld extends React.Component {
5-
constructor(props) {
6-
super(props);
7-
}
8-
5+
96
renderUserName = () => {
107
if(this.props.currentUser) {
118
return this.props.currentUser.userLogin;

src/components/login/LoginComponent.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import {login} from '../../redux/registration/registrationActions.jsx'
55
import {bindActionCreators} from 'redux'
66

77
class LoginForm extends React.Component {
8-
constructor(props) {
9-
super(props);
10-
11-
}
8+
129

1310
logOn() {
1411
if (this.refs.userLogin.value !== ''){

src/components/registration/RegistrationComponent.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ import {registrationUser} from '../../redux/registration/registrationActions.jsx
55
import {bindActionCreators} from 'redux'
66

77
class UserForm extends React.Component {
8-
constructor(props) {
9-
super(props);
108

11-
12-
13-
}
149

1510
signUp() {
1611
if (this.refs.userLogin.value !== '') {

0 commit comments

Comments
 (0)