Skip to content

Commit 0301af1

Browse files
author
Shannon Anahata
committed
fixing linting errors
1 parent 42e3022 commit 0301af1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function NotFound() {
1717
const reportUrl = `https://github.com/getsentry/sentry-docs/issues/new?template=issue-platform-404.yml&title=🔗 404 Error&url=${brokenUrl}`;
1818
return (
1919
<div className="tw-app">
20-
<Header pathname="/" searchPlatforms={[]} noSearch />
20+
<Header pathname="/" searchPlatforms={[]} noSearch platforms={[]} />
2121
<main className="px-8 pt-28">
2222
<h1 className="font-medium text-3xl mb-4">Page Not Found</h1>
2323
<p className="text-lg">We couldn't find the page you were looking for :(</p>

src/components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export const sidebarToggleId = sidebarStyles['navbar-menu-toggle'];
1818

1919
type Props = {
2020
pathname: string;
21-
platforms: Platform[];
2221
searchPlatforms: string[];
2322
noSearch?: boolean;
23+
platforms?: Platform[];
2424
useStoredSearchPlatforms?: boolean;
2525
};
2626

@@ -29,7 +29,7 @@ export default function Header({
2929
searchPlatforms,
3030
noSearch,
3131
useStoredSearchPlatforms,
32-
platforms,
32+
platforms = [],
3333
}: Props) {
3434
return (
3535
<header className="bg-[var(--gray-1)] h-[var(--header-height)] w-full z-50 border-b border-[var(--gray-a3)] fixed top-0">

0 commit comments

Comments
 (0)