Skip to content

Commit

Permalink
Edit breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Dec 2, 2024
1 parent 1b14901 commit 86cec07
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions apps/web/screens/Organization/Standalone/Level2Sitemap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
QueryGetOrganizationPageArgs,
QueryGetOrganizationPageStandaloneSitemapLevel2Args,
} from '@island.is/web/graphql/schema'
import { useLinkResolver } from '@island.is/web/hooks'
import useContentfulId from '@island.is/web/hooks/useContentfulId'
import { StandaloneLayout } from '@island.is/web/layouts/organization/standalone'
import type { Screen, ScreenContext } from '@island.is/web/types'
Expand Down Expand Up @@ -49,15 +48,8 @@ const StandaloneLevel2Sitemap: Screen<
StandaloneLevel2SitemapProps,
StandaloneLevel2SitemapScreenContext
> = ({ organizationPage, category, sitemap }) => {
const { linkResolver } = useLinkResolver()

const breadcrumbItems: BreadCrumbItem[] = useMemo(() => {
const items: BreadCrumbItem[] = [
{
title: organizationPage.title,
href: linkResolver('organizationpage', [organizationPage.slug]).href,
},
]
const items: BreadCrumbItem[] = []

if (category) {
items.push({
Expand All @@ -66,7 +58,7 @@ const StandaloneLevel2Sitemap: Screen<
})
}
return items
}, [category, linkResolver, organizationPage.slug, organizationPage.title])
}, [category])

return (
<StandaloneLayout
Expand Down

0 comments on commit 86cec07

Please sign in to comment.