Skip to content

Commit

Permalink
Fix: use path for navbar and update html utility
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanCCollins committed Feb 28, 2017
1 parent 86b2883 commit b6200c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/components/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default function Navbar(props: {
}
</Title>
<StyledMenu inline direction="row" align="center" responsive={false}>
<Anchor href="/" className={pathname === '/' ? 'active' : ''}>
<Anchor path="/" className={pathname === '/' ? 'active' : ''}>
Home
</Anchor>
<Anchor href="/about" className={pathname === '/about' ? 'active' : ''}>
<Anchor path="/about" className={pathname === '/about' ? 'active' : ''}>
About
</Anchor>
<Search dropAlign={{ right: 'right' }} />
Expand Down
4 changes: 2 additions & 2 deletions server/utils/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ function Html({ content, state, scriptHash, vendorHash, cssHash, styles }) {
</head>
<body>
<div id="app" dangerouslySetInnerHTML={{ __html: content }} />
<script src={`${scriptHash}`} charSet="UTF-8" />
<script src={`${vendorHash}`} type="text/javascript" />
<script
dangerouslySetInnerHTML={{
__html: `window.__APOLLO_STATE__=${serialize(state, { isJSON: true })};`,
}}
charSet="UTF-8"
/>
<script src={`${scriptHash}`} charSet="UTF-8" />
<script src={`${vendorHash}`} type="text/javascript" />
</body>
</html>
);
Expand Down

0 comments on commit b6200c5

Please sign in to comment.