File tree Expand file tree Collapse file tree 4 files changed +3
-16
lines changed
Expand file tree Collapse file tree 4 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ import React from "react"
22
33class Content extends React . Component {
44
5- constructor ( props ) {
6- super ( props ) ;
7- }
5+
86
97 render ( ) {
108 return ( < div > < h1 > Здесь будет информация</ h1 > </ div > ) ;
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ import React from 'react'
22import { connect } from 'react-redux' ;
33
44class 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 ;
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import {login} from '../../redux/registration/registrationActions.jsx'
55import { bindActionCreators } from 'redux'
66
77class LoginForm extends React . Component {
8- constructor ( props ) {
9- super ( props ) ;
10-
11- }
8+
129
1310 logOn ( ) {
1411 if ( this . refs . userLogin . value !== '' ) {
Original file line number Diff line number Diff line change @@ -5,12 +5,7 @@ import {registrationUser} from '../../redux/registration/registrationActions.jsx
55import { bindActionCreators } from 'redux'
66
77class UserForm extends React . Component {
8- constructor ( props ) {
9- super ( props ) ;
108
11-
12-
13- }
149
1510 signUp ( ) {
1611 if ( this . refs . userLogin . value !== '' ) {
You can’t perform that action at this time.
0 commit comments