Skip to content

Commit

Permalink
update:get curernt locale
Browse files Browse the repository at this point in the history
  • Loading branch information
maceteligolden committed Dec 26, 2023
1 parent 756a754 commit cc20060
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/app/[locale]/kanban/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +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 { locale } = useParams<{locale: string}>();
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: '/'}, {title: activeTeam?.name || '', href:'/'}, {title:'Kanban Board', href: `/${locale}/kanban`}];
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

0 comments on commit cc20060

Please sign in to comment.