Skip to content

Commit 5665e3f

Browse files
author
Grant
committed
stylistic changes
1 parent a7d7ad3 commit 5665e3f

File tree

7 files changed

+19
-18
lines changed

7 files changed

+19
-18
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ cp .env.sample .env
4444
```
4545
bundle exec foreman start
4646
```
47+
8.) Navigate to localhost:5000
4748

app/controllers/api/me_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
77
end

client/src/actions/Constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const RECEIVE_ME = 'RECEIVE_ME'
1+
export const RECEIVE_ME = 'RECEIVE_ME';

client/src/components/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const theme = {
1616
dark: '#13073A',
1717
}
1818
}
19-
}
19+
};
2020

2121
const App = ({ store }) => (
2222
<Provider store={store}>
@@ -26,10 +26,10 @@ const App = ({ store }) => (
2626
</Router>
2727
</ThemeProvider>
2828
</Provider>
29-
)
29+
);
3030

3131
App.propTypes = {
3232
store: PropTypes.object.isRequired
33-
}
33+
};
3434

35-
export default App
35+
export default App

client/src/components/LandingPage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1414
const FlexBox = styled.div`
1515
display: flex;
1616
align-items: center;
1717
justify-content: center;
18-
`
18+
`;
1919

2020
export const LandingPage = () => (
2121
<Page>
@@ -24,4 +24,4 @@ export const LandingPage = () => (
2424
<Intro />
2525
</FlexBox>
2626
</Page>
27-
)
27+
);

client/src/components/NavBar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const StyledNavBar = styled.nav`
1414
padding 0px;
1515
height: ${NAV_HEIGHT}px;
1616
width: 100%;
17-
`
17+
`;
1818

1919
let NavText = styled.p`
2020
color: #4a90e2;
2121
padding-right: 10px;
2222
padding-left: 10px;
2323
color: white;
24-
`
24+
`;
2525

2626
const 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

4040
let SignInBadge = () => (
4141
<Badge>
4242
<a href='/users/auth/salesloft' style={{textDecoration: 'none'}}><NavText>Login</NavText></a>
4343
</Badge>
44-
)
44+
);
4545

4646
let UserBadge = ({user}) => (
4747
<Badge>
4848
<a href='/users/auth/logout' style={{textDecoration: 'none'}}><NavText>{user.name}</NavText></a>
4949
</Badge>
50-
)
50+
);
5151

5252
let NavBar = ({user}) => (
5353
<StyledNavBar>
5454
{user ? <UserBadge user={user} /> : <SignInBadge />}
5555
</StyledNavBar>
56-
)
56+
);
5757

5858
export default NavBar
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import NavBar from '../components/NavBar'
22
import { connect } from 'react-redux'
33

4-
const mapStateToProps = state => ({ user: state.me.user })
4+
const mapStateToProps = state => ({ user: state.me.user });
55

66
export const ConnectedNavBar = connect(
77
mapStateToProps
8-
)(NavBar)
8+
)(NavBar);
99

10-
export default ConnectedNavBar
10+
export default ConnectedNavBar

0 commit comments

Comments
 (0)