chore: update forum links in NavLinks (#39141)
This commit is contained in:
committed by
GitHub
parent
25cabc0a18
commit
34c26c4950
@ -23,7 +23,7 @@ describe('<NavLinks />', () => {
|
|||||||
return acc;
|
return acc;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const expectedLinks = ['/learn', '/news', '/forum'];
|
const expectedLinks = ['/learn', '/news', 'https://forum.freecodecamp.org'];
|
||||||
|
|
||||||
it('renders to the DOM', () => {
|
it('renders to the DOM', () => {
|
||||||
expect(root).toBeTruthy();
|
expect(root).toBeTruthy();
|
||||||
|
@ -17,7 +17,11 @@ function NavLinks({ displayMenu }) {
|
|||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className='nav-forum'>
|
<li className='nav-forum'>
|
||||||
<Link external={true} sameTab={true} to='/forum'>
|
<Link
|
||||||
|
external={true}
|
||||||
|
sameTab={true}
|
||||||
|
to='https://forum.freecodecamp.org'
|
||||||
|
>
|
||||||
/forum
|
/forum
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
|
Reference in New Issue
Block a user