diff --git a/src/app/(main)/reports/[reportId]/ReportHeader.tsx b/src/app/(main)/reports/[reportId]/ReportHeader.tsx index 69ed46a9..2936d806 100644 --- a/src/app/(main)/reports/[reportId]/ReportHeader.tsx +++ b/src/app/(main)/reports/[reportId]/ReportHeader.tsx @@ -4,6 +4,7 @@ import { useMessages, useApi, useNavigation, useTeamUrl } from 'components/hooks import { ReportContext } from './Report'; import styles from './ReportHeader.module.css'; import { REPORT_TYPES } from 'lib/constants'; +import Breadcrumb from 'components/common/Breadcrumb'; export function ReportHeader({ icon }) { const { report, updateReport } = useContext(ReportContext); @@ -57,9 +58,16 @@ export function ReportHeader({ icon }) {
- {formatMessage( - labels[Object.keys(REPORT_TYPES).find(key => REPORT_TYPES[key] === report?.type)], - )} + REPORT_TYPES[key] === report?.type)], + ), + }, + ]} + />
{icon} diff --git a/src/app/(main)/settings/users/[userId]/UserSettings.tsx b/src/app/(main)/settings/users/[userId]/UserSettings.tsx index 1ea663f5..f9e17a85 100644 --- a/src/app/(main)/settings/users/[userId]/UserSettings.tsx +++ b/src/app/(main)/settings/users/[userId]/UserSettings.tsx @@ -6,6 +6,7 @@ import PageHeader from 'components/layout/PageHeader'; import { useMessages } from 'components/hooks'; import UserWebsites from './UserWebsites'; import { UserContext } from './UserProvider'; +import Breadcrumb from 'components/common/Breadcrumb'; export function UserSettings({ userId }: { userId: string }) { const { formatMessage, labels, messages } = useMessages(); @@ -17,9 +18,23 @@ export function UserSettings({ userId }: { userId: string }) { showToast({ message: formatMessage(messages.saved), variant: 'success' }); }; + const breadcrumb = ( + + ); + return ( <> - } /> + } breadcrumb={breadcrumb} /> {formatMessage(labels.details)} {formatMessage(labels.websites)} diff --git a/src/app/(main)/settings/websites/[websiteId]/WebsiteSettings.tsx b/src/app/(main)/settings/websites/[websiteId]/WebsiteSettings.tsx index ebe65fe0..99f9faa1 100644 --- a/src/app/(main)/settings/websites/[websiteId]/WebsiteSettings.tsx +++ b/src/app/(main)/settings/websites/[websiteId]/WebsiteSettings.tsx @@ -1,14 +1,15 @@ -import { useState, Key, useContext } from 'react'; -import { Item, Tabs, Button, Text, Icon, useToasts } from 'react-basics'; -import Link from 'next/link'; +import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider'; +import Breadcrumb from 'components/common/Breadcrumb'; +import { useMessages } from 'components/hooks'; import Icons from 'components/icons'; import PageHeader from 'components/layout/PageHeader'; -import WebsiteEditForm from './WebsiteEditForm'; -import WebsiteData from './WebsiteData'; -import TrackingCode from './TrackingCode'; +import Link from 'next/link'; +import { Key, useContext, useState } from 'react'; +import { Button, Icon, Item, Tabs, Text, useToasts } from 'react-basics'; import ShareUrl from './ShareUrl'; -import { useMessages } from 'components/hooks'; -import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider'; +import TrackingCode from './TrackingCode'; +import WebsiteData from './WebsiteData'; +import WebsiteEditForm from './WebsiteEditForm'; export function WebsiteSettings({ websiteId, @@ -28,9 +29,23 @@ export function WebsiteSettings({ showToast({ message: formatMessage(messages.saved), variant: 'success' }); }; + const breadcrumb = ( + + ); + return ( <> - }> + } breadcrumb={breadcrumb}>