Skip to content

Commit

Permalink
fix: breadcrumbs issue in setting page
Browse files Browse the repository at this point in the history
  • Loading branch information
Anishali2 committed May 17, 2024
1 parent 40145ec commit 4a95b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/[locale]/settings/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const SettingsLayout = ({ children }: { children: JSX.Element }) => {
const fullWidth = useRecoilValue(fullWidthState);
const pathName = usePathname();
const getEndPath: any = pathName?.split('settings/')[1];
const endCapitlizeWord: 'TEAM' | 'PERSONAL' = getEndPath?.toUpperCase();
const endWord: 'TEAM' | 'PERSONAL' = getEndPath?.toUpperCase();
const breadcrumb = [
{ title: JSON.parse(t('pages.home.BREADCRUMB')), href: '/' },
{ title: t('common.SETTINGS'), href: pathName as string },
{ title: t(`common.${endCapitlizeWord}`), href: pathName as string }
{ title: t(`common.${endWord}`), href: pathName as string }
];
console.log('breadcrumb', breadcrumb);
if (!user) {
Expand Down

0 comments on commit 4a95b68

Please sign in to comment.