Skip to content

Commit ff7c79e

Browse files
authored
Update Changelog to link to new olvy location (codesandbox#6742)
Changelog moves from CodeSandbox to olvy for the time being * Update What's New Link in header * Update What's New Link in footer
1 parent 2b5fe67 commit ff7c79e

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

packages/homepage/src/components/Footer/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Github from '../../assets/icons/github';
55
import Twitter from '../../assets/icons/twitter';
66
import Discord from '../../assets/icons/discord';
77
import { OPEN_JOBS_COUNT } from '../../config/hiring';
8+
import { CHANGELOG_LOCATION } from '../../config/externalResources';
89
import { FooterWrapper, Nav, Social, Title } from './elements';
910

1011
const footerNavElements = [
@@ -29,7 +30,8 @@ const footerNavElements = [
2930
},
3031
{
3132
text: 'What’s new',
32-
link: '/changelog',
33+
external: true,
34+
link: CHANGELOG_LOCATION,
3335
},
3436
],
3537
},

packages/homepage/src/components/Navigation/index.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import SearchIcon from '../../assets/icons/Search';
2121
import HighlightedICon from '../../assets/icons/Highlighted';
2222
import NewIcon from '../../assets/icons/New';
2323
import { OPEN_JOBS_COUNT } from '../../config/hiring';
24+
import { CHANGELOG_LOCATION } from '../../config/externalResources';
2425
import { useLogin } from '../../hooks/useLogin';
2526
import { JobBadge } from '../JobBadge';
2627
import {
@@ -356,11 +357,25 @@ const Navigation = () => {
356357
},
357358
{
358359
Icon: () => (
359-
<Link to="/changelog">
360+
<a
361+
href={CHANGELOG_LOCATION}
362+
target="_blank"
363+
rel="noopener noreferrer"
364+
title="What's new"
365+
>
360366
<NewIcon />
361-
</Link>
367+
</a>
368+
),
369+
Label: () => (
370+
<a
371+
href={CHANGELOG_LOCATION}
372+
target="_blank"
373+
rel="noopener noreferrer"
374+
title="What's new"
375+
>
376+
What's new
377+
</a>
362378
),
363-
Label: () => <Link to="/changelog">What's new</Link>,
364379
},
365380
]}
366381
/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const CHANGELOG_LOCATION = 'https://codesandbox.olvy.co/';

0 commit comments

Comments
 (0)