Skip to content

Commit

Permalink
Merge pull request #613 from knowit/fix/612_tab_title_henger_igjen
Browse files Browse the repository at this point in the history
Setter pagetitle ved bytte av menyvalg
  • Loading branch information
karo authored Oct 4, 2024
2 parents 8429fe9 + 5522755 commit c13f123
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/pages/competence/CompetencePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
FagtimerCard,
} from './cards'
import { useMatomo } from '@jonkoops/matomo-tracker-react'
import { pageTitle } from '../../utils/pagetitle'

export default function CompetencePage() {
const { trackPageView } = useMatomo()
Expand All @@ -19,6 +20,7 @@ export default function CompetencePage() {
trackPageView({
documentTitle: 'Kompetanse',
})
pageTitle('Kompetanse')
}, [trackPageView])

return (
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/pages/customer/CustomerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NavTab from '../../components/header/NavTab'
import CustomerList from './customer-list/CustomerList'
import { CustomerOverview } from './customer-overview/CustomerOverview'
import { useEffect } from 'react'
import { pageTitle } from '../../utils/pagetitle'

export default function Customer() {
const { trackPageView } = useMatomo()
Expand All @@ -11,6 +12,7 @@ export default function Customer() {
trackPageView({
documentTitle: 'Kunder',
})
pageTitle('Kundeliste')
}, [trackPageView])

return (
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/pages/employee/EmployeePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Grid } from '@mui/material'
import { EmployeeTable } from './table/EmployeeTable'
import { useMatomo } from '@jonkoops/matomo-tracker-react'
import { useEffect } from 'react'
import { pageTitle } from '../../utils/pagetitle'

export default function EmployeePage() {
const { trackPageView } = useMatomo()
Expand All @@ -10,6 +11,7 @@ export default function EmployeePage() {
trackPageView({
documentTitle: 'Ansatte',
})
pageTitle('Ansatte')
}, [trackPageView])

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useEffect, useState } from 'react'
import Filter from './Components/Filter/Filter'
import styled from '@emotion/styled'
import { useMatomo } from '@jonkoops/matomo-tracker-react'
import { pageTitle } from '../../utils/pagetitle'

export default function OrganizationStructurePage() {
const { trackPageView } = useMatomo()
Expand All @@ -16,6 +17,7 @@ export default function OrganizationStructurePage() {
trackPageView({
documentTitle: 'Organisasjonsstruktur',
})
pageTitle('Organisasjonsstruktur')
}, [trackPageView])

function toggleEmployees() {
Expand Down

0 comments on commit c13f123

Please sign in to comment.