Skip to content

Commit

Permalink
Merge pull request #2023 from ever-co/update/breadcrumb_links
Browse files Browse the repository at this point in the history
Update/breadcrumb links
  • Loading branch information
evereq authored Dec 27, 2023
2 parents 434cdb4 + cc20060 commit b640cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/web/app/[locale]/kanban/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ import { MainLayout } from 'lib/layout';
import Image from 'next/image';
import { useState } from 'react';
import { useTranslations } from 'next-intl';
import { useParams } from 'next/navigation';

const Kanban = () => {
const { data } = useKanban();
const { activeTeam } = useOrganizationTeams();
const t = useTranslations();
const params = useParams<{locale: string}>();

const currentLocale = params ? params.locale : null;

const [activeTab, setActiveTab] = useState(KanbanTabs.TODAY);

const breadcrumbPath = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, activeTeam?.name || '', 'Kanban Board'];
const breadcrumbPath = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, {title: activeTeam?.name || '', href:'/'}, {title:'Kanban Board', href: `/${currentLocale}/kanban`}];

const imageRadius = 20;
const numberOfImagesDisplayed = 4;
Expand Down
3 changes: 2 additions & 1 deletion apps/web/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ type MyAppProps = {

function MainPage({ pageProps }: AppProps<MyAppProps>) {
const t = useTranslations();

const { isTeamMember, isTrackingEnabled, activeTeam } = useOrganizationTeams();

const breadcrumb = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, activeTeam?.name || ''];
const breadcrumb = [{title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/'}, { title: activeTeam?.name || '', href:'/'}];
const [view, setView] = useState<IssuesView>(IssuesView.CARDS);
const { online } = useNetworkState();

Expand Down

0 comments on commit b640cfd

Please sign in to comment.