Skip to content

Commit

Permalink
built signinform component for the signin component
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxnelson997 committed Jul 10, 2018
1 parent 096ace5 commit c23f9f0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/auth/signin.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import React, { Component } from 'react';

import { reduxForm, Field } from 'redux-form';
import SignInForm from './signinForm';

class SignIn extends Component {
render() {
return (
<div className='sign-in'>
sign innn
<SignInForm className='sign-in__form' />
</div>
)
}
}

SignIn = reduxForm({
form: 'SignIn'
})(SignIn);

export default SignIn;
20 changes: 20 additions & 0 deletions src/components/auth/signinForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, { Component } from 'react';

import { reduxForm, Field } from 'redux-form';

class SignInForm extends Component {
render() {
const { className } = this.props;
return (
<form className={`${className} sign-in-form`}>
sign innn
</form>
)
}
}

SignInForm = reduxForm({
form: 'SignInForm'
})(SignInForm);

export default SignInForm;
8 changes: 8 additions & 0 deletions src/style/auth/signin.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
.sign-in {
grid-row: content-s/content-e;
grid-column: s/e;

&__form {

}
}

.sign-in-form {

}

0 comments on commit c23f9f0

Please sign in to comment.