feat: update AppLogo component to use pathsConfig for home navigation
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { getTeamAccountSidebarConfig } from '@/packages/shared/src/config';
|
||||
import {
|
||||
getTeamAccountSidebarConfig,
|
||||
pathsConfig,
|
||||
} from '@/packages/shared/src/config';
|
||||
|
||||
import { AppLogo } from '@kit/shared/components/app-logo';
|
||||
import { ProfileAccountDropdownContainer } from '@kit/shared/components/personal-account-dropdown-container';
|
||||
@@ -47,7 +50,7 @@ export function TeamAccountNavigationMenu(props: {
|
||||
return (
|
||||
<div className={'flex w-full flex-1 justify-between'}>
|
||||
<div className={'flex items-center space-x-8'}>
|
||||
<AppLogo />
|
||||
<AppLogo href={pathsConfig.app.home} />
|
||||
</div>
|
||||
|
||||
<div className={'flex items-center justify-end gap-2 space-x-2.5'}>
|
||||
|
||||
@@ -5,19 +5,21 @@ import { cookies } from 'next/headers';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppLogo } from '@kit/shared/components/app-logo';
|
||||
import { getTeamAccountSidebarConfig } from '@kit/shared/config';
|
||||
import { getTeamAccountSidebarConfig, pathsConfig } from '@kit/shared/config';
|
||||
import {
|
||||
CompanyGuard,
|
||||
TeamAccountWorkspaceContextProvider,
|
||||
} from '@kit/team-accounts/components';
|
||||
import { Page, PageMobileNavigation, PageNavigation } from '@kit/ui/page';
|
||||
import { SidebarProvider } from '@kit/ui/shadcn-sidebar';
|
||||
|
||||
import { withI18n } from '~/lib/i18n/with-i18n';
|
||||
|
||||
// local imports
|
||||
import { TeamAccountLayoutMobileNavigation } from './_components/team-account-layout-mobile-navigation';
|
||||
import { TeamAccountLayoutSidebar } from './_components/team-account-layout-sidebar';
|
||||
import { TeamAccountNavigationMenu } from './_components/team-account-navigation-menu';
|
||||
import { loadTeamWorkspace } from './_lib/server/team-account-workspace.loader';
|
||||
import { withI18n } from '~/lib/i18n/with-i18n';
|
||||
|
||||
type TeamWorkspaceLayoutProps = React.PropsWithChildren<{
|
||||
params: Promise<{ account: string }>;
|
||||
@@ -66,7 +68,7 @@ function SidebarLayout({
|
||||
</PageNavigation>
|
||||
|
||||
<PageMobileNavigation className={'flex items-center justify-between'}>
|
||||
<AppLogo />
|
||||
<AppLogo href={pathsConfig.app.home} />
|
||||
|
||||
<div className={'flex space-x-4'}>
|
||||
<TeamAccountLayoutMobileNavigation
|
||||
@@ -109,7 +111,7 @@ function HeaderLayout({
|
||||
</PageNavigation>
|
||||
|
||||
<PageMobileNavigation className={'flex items-center justify-between'}>
|
||||
<AppLogo />
|
||||
<AppLogo href={pathsConfig.app.home} />
|
||||
|
||||
<div className={'group-data-[mobile:hidden]'}>
|
||||
<TeamAccountLayoutMobileNavigation
|
||||
@@ -134,7 +136,7 @@ function HeaderLayout({
|
||||
<PageMobileNavigation
|
||||
className={'flex items-center justify-between'}
|
||||
>
|
||||
<AppLogo />
|
||||
<AppLogo href={pathsConfig.app.home} />
|
||||
<div className={'flex space-x-4'}>
|
||||
<TeamAccountLayoutMobileNavigation
|
||||
userId={data.user.id}
|
||||
|
||||
Reference in New Issue
Block a user