File tree Expand file tree Collapse file tree 7 files changed +19
-18
lines changed
Expand file tree Collapse file tree 7 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -44,4 +44,5 @@ cp .env.sample .env
4444```
4545bundle exec foreman start
4646```
47+ 8.) Navigate to localhost:5000
4748
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ class Api::MeController < Api::BaseController
22 respond_to :json
33
44 def me
5- current_user ? respond_with { user : current_user } : respond_with { }
5+ current_user ? ( respond_with ( { user : current_user } ) ) : respond_with { }
66 end
77end
Original file line number Diff line number Diff line change 1- export const RECEIVE_ME = 'RECEIVE_ME'
1+ export const RECEIVE_ME = 'RECEIVE_ME' ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const theme = {
1616 dark : '#13073A' ,
1717 }
1818 }
19- }
19+ } ;
2020
2121const App = ( { store } ) => (
2222 < Provider store = { store } >
@@ -26,10 +26,10 @@ const App = ({ store }) => (
2626 </ Router >
2727 </ ThemeProvider >
2828 </ Provider >
29- )
29+ ) ;
3030
3131App . propTypes = {
3232 store : PropTypes . object . isRequired
33- }
33+ } ;
3434
35- export default App
35+ export default App
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ const Page = styled.div`
99 grid-template 46px 1fr / 1fr;
1010 height: 100%;
1111 width: 100%;
12- `
12+ ` ;
1313
1414const FlexBox = styled . div `
1515 display: flex;
1616 align-items: center;
1717 justify-content: center;
18- `
18+ ` ;
1919
2020export const LandingPage = ( ) => (
2121 < Page >
@@ -24,4 +24,4 @@ export const LandingPage = () => (
2424 < Intro />
2525 </ FlexBox >
2626 </ Page >
27- )
27+ ) ;
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ const StyledNavBar = styled.nav`
1414 padding 0px;
1515 height: ${ NAV_HEIGHT } px;
1616 width: 100%;
17- `
17+ ` ;
1818
1919let NavText = styled . p `
2020 color: #4a90e2;
2121 padding-right: 10px;
2222 padding-left: 10px;
2323 color: white;
24- `
24+ ` ;
2525
2626const Badge = styled . div `
2727 margin: 3px;
@@ -35,24 +35,24 @@ const Badge = styled.div`
3535 font-size: 25px;
3636 font-weight: bold;
3737 background-color: #4a90e2;
38- `
38+ ` ;
3939
4040let SignInBadge = ( ) => (
4141 < Badge >
4242 < a href = '/users/auth/salesloft' style = { { textDecoration : 'none' } } > < NavText > Login</ NavText > </ a >
4343 </ Badge >
44- )
44+ ) ;
4545
4646let UserBadge = ( { user} ) => (
4747 < Badge >
4848 < a href = '/users/auth/logout' style = { { textDecoration : 'none' } } > < NavText > { user . name } </ NavText > </ a >
4949 </ Badge >
50- )
50+ ) ;
5151
5252let NavBar = ( { user} ) => (
5353 < StyledNavBar >
5454 { user ? < UserBadge user = { user } /> : < SignInBadge /> }
5555 </ StyledNavBar >
56- )
56+ ) ;
5757
5858export default NavBar
Original file line number Diff line number Diff line change 11import NavBar from '../components/NavBar'
22import { connect } from 'react-redux'
33
4- const mapStateToProps = state => ( { user : state . me . user } )
4+ const mapStateToProps = state => ( { user : state . me . user } ) ;
55
66export const ConnectedNavBar = connect (
77 mapStateToProps
8- ) ( NavBar )
8+ ) ( NavBar ) ;
99
10- export default ConnectedNavBar
10+ export default ConnectedNavBar
You can’t perform that action at this time.
0 commit comments