Skip to content

Commit

Permalink
feat(web): Add custom top login button item to VMST "My Pages" page (#…
Browse files Browse the repository at this point in the history
…17453)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
RunarVestmann and kodiakhq[bot] authored Jan 9, 2025
1 parent 1aa26d4 commit a2d6db8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/web/screens/Organization/DirectorateOfLabour/MyPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { useNamespace } from '@island.is/web/hooks'
import { useI18n } from '@island.is/web/i18n'
import { withMainLayout } from '@island.is/web/layouts/main'
import { CustomNextError } from '@island.is/web/units/errors'
import { extractNamespaceFromOrganization } from '@island.is/web/utils/extractNamespaceFromOrganization'
import { getOrganizationSidebarNavigationItems } from '@island.is/web/utils/organization'
import { webRichText } from '@island.is/web/utils/richText'

Expand Down Expand Up @@ -159,9 +160,14 @@ MyPages.getProps = async ({ apolloClient, locale }) => {
throw new CustomNextError(404, 'Organization page not found')
}

const organizationNamespace = extractNamespaceFromOrganization(
getOrganizationPage.organization,
)

return {
organizationPage: getOrganizationPage,
namespace,
customTopLoginButtonItem: organizationNamespace?.customTopLoginButtonItem,
}
}

Expand Down

0 comments on commit a2d6db8

Please sign in to comment.