Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions apps/site/components/withProgressionSidebar.tsx

This file was deleted.

6 changes: 4 additions & 2 deletions apps/site/components/withSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import type { NavigationKeys } from '#site/types';
type WithSidebarProps = {
navKeys: Array<NavigationKeys>;
context?: Record<string, RichTranslationValues>;
showProgressionIcons?: boolean;
};

const WithSidebar: FC<WithSidebarProps> = ({ navKeys, context }) => {
const WithSidebar: FC<WithSidebarProps> = ({ navKeys, context, ...props }) => {
const { getSideNavigation } = useSiteNavigation();
const pathname = usePathname()!;
const locale = useLocale();
Expand All @@ -35,8 +36,9 @@ const WithSidebar: FC<WithSidebarProps> = ({ navKeys, context }) => {
groups={mappedSidebarItems}
pathname={pathname.replace(`/${locale}`, '')}
title={t('components.common.sidebar.title')}
onSelect={value => push(value)}
onSelect={push}
as={Link}
{...props}
/>
);
};
Expand Down
4 changes: 2 additions & 2 deletions apps/site/layouts/Learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import WithBreadcrumbs from '#site/components/withBreadcrumbs';
import WithFooter from '#site/components/withFooter';
import WithMetaBar from '#site/components/withMetaBar';
import WithNavBar from '#site/components/withNavBar';
import WithProgressionSidebar from '#site/components/withProgressionSidebar';
import SideBar from '#site/components/withSidebar';
import WithSidebarCrossLinks from '#site/components/withSidebarCrossLinks';

const LearnLayout: FC<PropsWithChildren> = ({ children }) => (
<>
<WithNavBar />

<Article>
<WithProgressionSidebar navKey="learn" />
<SideBar navKeys={['learn']} showProgressionIcons={true} />

<div>
<main>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading