From 3e92aae9d08fd0dc5bb90d333bffce65621e6c26 Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Tue, 26 Mar 2024 15:40:54 -0400 Subject: [PATCH] fix: navigation for tabs --- app/src/components/Layout.tsx | 15 +++++++++++++-- package-lock.json | 26 -------------------------- 2 files changed, 13 insertions(+), 28 deletions(-) diff --git a/app/src/components/Layout.tsx b/app/src/components/Layout.tsx index f299b4c..dcdd515 100644 --- a/app/src/components/Layout.tsx +++ b/app/src/components/Layout.tsx @@ -63,12 +63,23 @@ export const Layout: FC = ({ children }) => { )} - + { + e.preventDefault(); + router.push('/'); + }} + > Repositories { + e.preventDefault(); + router.push('/documentation'); + }} > Documentation diff --git a/package-lock.json b/package-lock.json index b3df2f5..6f23bed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,6 @@ "@primer/octicons-react": "^19.9.0", "@primer/react": "^36.12.0", "@tailwindcss/typography": "^0.5.10", - "@vercel/analytics": "^1.2.2", "autoprefixer": "^10.4.19", "file-saver": "^2.0.5", "json-2-csv": "^5.5.1", @@ -4359,26 +4358,6 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, - "node_modules/@vercel/analytics": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.2.2.tgz", - "integrity": "sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==", - "dependencies": { - "server-only": "^0.0.1" - }, - "peerDependencies": { - "next": ">= 13", - "react": "^18 || ^19" - }, - "peerDependenciesMeta": { - "next": { - "optional": true - }, - "react": { - "optional": true - } - } - }, "node_modules/@vitest/expect": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.4.0.tgz", @@ -13797,11 +13776,6 @@ "randombytes": "^2.1.0" } }, - "node_modules/server-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", - "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==" - }, "node_modules/set-function-length": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",