Skip to content

Commit

Permalink
remove unused posthog instance in general routes list
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Nov 13, 2024
1 parent 5614f16 commit d62122f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions clients/apps/web/src/components/Dashboard/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const usePersonalFinanceSubRoutes = (): SubRouteWithActive[] => {

// internals below

const generalRoutesList = (org: Organization, posthog?: PolarHog): Route[] => [
const generalRoutesList = (org: Organization): Route[] => [
{
id: 'home',
title: 'Home',
Expand Down Expand Up @@ -260,11 +260,8 @@ const communityRoutesList = (org: Organization): Route[] => [
},
]

const dashboardRoutesList = (
org: Organization,
posthog?: PolarHog,
): Route[] => [
...generalRoutesList(org, posthog),
const dashboardRoutesList = (org: Organization): Route[] => [
...generalRoutesList(org),
...fundingRoutesList(org),
...communityRoutesList(org),
...organizationRoutesList(org),
Expand Down

0 comments on commit d62122f

Please sign in to comment.