1
0
Fork 0

working base to merge

This commit is contained in:
Amarpreet Minhas 2019-08-27 21:17:11 -04:00
parent 776a567c0c
commit 2fcbe3b2da

View file

@ -1,5 +1,4 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
class AuthMenu extends Component {
constructor (props) {
@ -7,7 +6,6 @@ class AuthMenu extends Component {
this.state = {
where_in_auth_menu: "username",
auth_menu_visible: props.auth_menu_visible,
}
this.handleSignUpRequest = this.handleSignUpRequest.bind(this)
@ -38,7 +36,7 @@ class AuthMenu extends Component {
}
authMenu() {
if (!this.state.auth_menu_visible) {
if (!this.props.auth_menu_visible) {
return null;
}
switch(this.state.where_in_auth_menu) {
@ -53,7 +51,7 @@ class AuthMenu extends Component {
<div className="fluid ui buttons">
<button onClick={this.handleSignUpRequest} className="ui button">Sign Up</button>
<div className="or"></div>
<button className="ui positive button">Sign In</button>
<button onClick={this.handleLogInAttempt} className="ui positive button">Sign In</button>
</div>
</div>
)
@ -61,9 +59,9 @@ class AuthMenu extends Component {
return (
<div className="ui menu dropdown" style={{display: "inline"}}>
<div className="ui left icon input">
<input type="text" placeholder="Username">
<input type="text" placeholder="Password">
</input>
<i className="users icon"></i>
<i className="lock icon"></i>
</div>
</div>
)