Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 1477051

Browse files
RickRhollomancer
authored andcommitted
Disable loging in
1 parent 4c4ec10 commit 1477051

5 files changed

Lines changed: 1 addition & 17 deletions

File tree

src/scenes/home/header/sideNav/sideNav.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ class SideNav extends Component {
7777
to="/join" text="Join"
7878
onClick={this.handleCloseClick}
7979
/>
80-
<NavItem
81-
className="menuItem"
82-
to="/login" text="Login"
83-
onClick={this.handleCloseClick}
84-
/>
8580
</span>
8681
);
8782
}

src/scenes/home/header/topNav/topNav.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class TopNav extends Component {
4646
<NavItem to="code-schools" text="Code Schools" />
4747
<NavItem to="https://donorbox.org/operationcode" text="Donate" isExternal />
4848
<NavItem to="join" text="Join" />
49-
<NavItem to="login" text="Login" />
5049
</Nav>
5150
);
5251
}

src/scenes/home/home.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React, { Component } from 'react';
44
import { Route, withRouter } from 'react-router-dom';
55
import PropTypes from 'prop-types';
66
import classNames from 'classnames';
7-
import Login from 'shared/components/login/login';
87
import * as CookieHelpers from 'shared/utils/cookieHelper';
98
import familyImage from 'images/Family-2.png';
109
import SignUp from './signup/signup';
@@ -107,13 +106,6 @@ class Home extends Component {
107106
path="/thanks"
108107
component={Thanks}
109108
/>
110-
<Route
111-
exact
112-
path="/login"
113-
render={() => (
114-
<Login updateRootAuthState={this.updateRootAuthState} />
115-
)}
116-
/>
117109
<Route
118110
exact
119111
path="/"

src/scenes/home/signup/signup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class SignUp extends Component {
126126
onChange={this.onConfirmPasswordChange} validateFunc={this.validatePasswordConfirm}
127127
/>
128128
{this.state.error && <span>There was an error joining Operation Code™: {this.state.error}</span>}
129-
{this.state.success && <Redirect to="/login" />}
129+
{this.state.success && <Redirect to="/thanks" />}
130130
<FormButton className={styles.joinButton} text="Join" onClick={this.handleOnClick} theme="red" />
131131
</Form>
132132
</Section>

src/scenes/home/thanks/thanks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import React, { Component } from 'react';
2-
import { Link } from 'react-router-dom';
32
import Section from 'shared/components/section/section';
43

54
class Thanks extends Component {
65
render() {
76
return (
87
<Section title="Thanks for joining">
98
<span>Thanks for joining operation code™. Please check your email for orders.</span>
10-
<Link to="/home">Get Started</Link>
119
</Section>
1210
);
1311
}

0 commit comments

Comments
 (0)