Skip to content

Commit

Permalink
npm package for a react component part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
samcorcos committed Sep 20, 2016
1 parent 69f2389 commit d974508
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/components/Home/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react"
import cssModules from "react-css-modules"
import { connect } from "react-redux"
import PhoenixChat from "phoenix-chat"
import style from "./style.css"

import { default as Signup } from "../Signup"
Expand Down Expand Up @@ -44,7 +45,11 @@ export class Home extends React.Component {

render() {
if (this.props.user.email) {
return (<Chat />)
return (
<Chat>
<PhoenixChat />
</Chat>
)
}
return (
<div className={style.leader}>
Expand All @@ -56,6 +61,7 @@ export class Home extends React.Component {
role="presentation"
className={style.circles}
src="https://s3.amazonaws.com/learnphoenix-static-assets/images/circles-full.png" />
<PhoenixChat />
</div>
)
}
Expand Down

0 comments on commit d974508

Please sign in to comment.