Skip to content

Commit

Permalink
fix: Hardcode changelog links (#10898)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Forstner <[email protected]>
  • Loading branch information
rahulchhabria and lforst authored Jul 29, 2024
1 parent 332d4cc commit 7a8c627
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {HamburgerMenuIcon} from '@radix-ui/react-icons';
import Image from 'next/image';

import {getChangelogLink} from 'sentry-docs/getChangelogLink';
import SentryLogoSVG from 'sentry-docs/logos/sentry-logo-dark.svg';

import sidebarStyles from './sidebar/style.module.scss';
Expand Down Expand Up @@ -57,7 +56,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
</div>
)}
<div className="hidden lg:flex justify-end flex-1 space-x-2 items-center">
<NavLink href={getChangelogLink()}>Changelog</NavLink>
<NavLink href="https://sentry.io/changelog/">Changelog</NavLink>
<NavLink href="https://try.sentry-demo.com/demo/start/">Sandbox</NavLink>
<NavLink href="https://sentry.io/">Sign In</NavLink>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/components/mobileMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {Box, Button, Theme} from '@radix-ui/themes';
import Link from 'next/link';

import {Search} from 'sentry-docs/components/search';
import {getChangelogLink} from 'sentry-docs/getChangelogLink';

import styles from './styles.module.scss';

Expand Down Expand Up @@ -50,7 +49,7 @@ export function MobileMenu({pathname, searchPlatforms}: Props) {
<DropdownMenu.Separator className={styles.DropdownMenuSeparator} />
</Box>
<DropdownMenu.Item className={styles.DropdownMenuItem} asChild>
<Link href={getChangelogLink()}>Changelog</Link>
<Link href="https://sentry.io/changelog/">Changelog</Link>
</DropdownMenu.Item>
<DropdownMenu.Item className={styles.DropdownMenuItem} asChild>
<Link href="https://try.sentry-demo.com/demo/start/">Sandbox</Link>
Expand Down
5 changes: 0 additions & 5 deletions src/getChangelogLink.ts

This file was deleted.

0 comments on commit 7a8c627

Please sign in to comment.