Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ParabolInc/action
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanh committed Aug 16, 2016
2 parents 830a160 + fae8a47 commit a2c458b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
15 changes: 11 additions & 4 deletions src/universal/modules/landing/components/Landing/Landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default class Landing extends Component {
static propTypes = {
// children included here for multi-part landing pages (FAQs, pricing, cha la la)
// children: PropTypes.element,
onMeetingCreateClick: PropTypes.func.isRequired
handleLoginClick: PropTypes.func.isRequired
};

render() {
const {onMeetingCreateClick} = this.props;
const {handleLoginClick} = this.props;

return (
<div className={styles.layout}>
Expand All @@ -44,14 +44,21 @@ export default class Landing extends Component {
</h2>
<button
className={styles.ctaButton}
onClick={onMeetingCreateClick}
onClick={handleLoginClick}
title="Get Started"
>
Get Started
</button>
<br />
{/* TODO: Add click handler for logging in */}
<a className={styles.headerLink} href="#" title="Log In">Or, log in</a>
<a
className={styles.headerLink}
href="#"
title="Log In"
onClick={handleLoginClick}
>
Or, log in
</a>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ const LandingContainer = (props) => {
return (
<div>
<Helmet title="Welcome to Action" {...head} />
<Landing onMeetingCreateClick={showLockThunk} {...props} />
<Landing handleLoginClick={showLockThunk} {...props} />
</div>
);
};

LandingContainer.propTypes = {
auth: PropTypes.object,
user: PropTypes.shape({
email: PropTypes.string,
id: PropTypes.string,
picture: PropTypes.string,
preferredName: PropTypes.string
}),
dispatch: PropTypes.func.isRequired,
authToken: PropTypes.string,
user: PropTypes.object
};

export default loginWithToken(LandingContainer);

0 comments on commit a2c458b

Please sign in to comment.