Skip to content

Commit

Permalink
feat(nav): shift navigation to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerd Müller committed Jun 27, 2020
1 parent 5635bf9 commit 1b06792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/ui/src/lib/nav/nav.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.navigation {
left: 2%;
right: 2%;
position: absolute;
top: 50%;
z-index: 6;
Expand Down
4 changes: 2 additions & 2 deletions libs/ui/src/lib/nav/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export interface NavProps {
export const Nav = (props: NavProps) => {

const renderChapterNav = () => {
return props.chapters.map((chapter, index) => <li className='navigation--item' key={index}><NavLink to = {`/chapter/${chapter.link}`} />{chapter.name}</li> )
return props.chapters.map((chapter, index) => <li className='navigation--item' key={index}><NavLink to = {`/chapter/${chapter.link}`} /></li> )
}

return (
<nav className="app-nav">
<ul className='navigation'>
<li className='navigation--item'>
<NavLink exact to="/">Home</NavLink>
<NavLink exact to="/" />
</li>
{renderChapterNav()}
</ul>
Expand Down

0 comments on commit 1b06792

Please sign in to comment.