feat: remove portfolio and add conditional intro

This commit is contained in:
Ahmad Abdolsaheb
2019-10-22 13:38:19 +03:00
committed by Mrugesh Mohapatra
parent 3483a04ba1
commit 2352c0b1d9
14 changed files with 272 additions and 252 deletions

View File

@@ -23,13 +23,13 @@ describe('<NavLinks />', () => {
return acc;
}, []);
const expectedLinks = ['/learn', '/portfolio', '/news', '/forum'];
const expectedLinks = ['/learn', '/news', '/forum'];
it('renders to the DOM', () => {
expect(root).toBeTruthy();
});
it('has 2 links', () => {
expect(aTags.length === 4).toBeTruthy();
it('has 3 links', () => {
expect(aTags.length === 3).toBeTruthy();
});
it('has links to news, forum, learn and portfolio', () => {

View File

@@ -25,10 +25,7 @@ function NavLinks({ displayMenu }) {
</Link>
</li>
<li className='nav-projects' role='menuitem'>
<Link to='/learn'>Projects</Link>
</li>
<li className='nav-portfolio' role='menuitem'>
<Link to='/portfolio'>Portfolio</Link>
<Link to='/learn'>Learn</Link>
</li>
</ul>
</div>