feat: wire resources and binder pages into the app
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,3 +9,4 @@ lib-commonjs/
|
|||||||
release/
|
release/
|
||||||
jest-output/
|
jest-output/
|
||||||
.claude/settings.local.json
|
.claude/settings.local.json
|
||||||
|
.claude/worktrees/
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|||||||
import { useRouter } from './routing/RouterContext';
|
import { useRouter } from './routing/RouterContext';
|
||||||
import { SectionPlaceholder } from './SectionPlaceholder';
|
import { SectionPlaceholder } from './SectionPlaceholder';
|
||||||
import { HubPage } from '../pages/hub/HubPage';
|
import { HubPage } from '../pages/hub/HubPage';
|
||||||
|
import { ResourcesPage } from '../pages/resources/ResourcesPage';
|
||||||
|
import { BinderPage } from '../pages/binder/BinderPage';
|
||||||
|
|
||||||
/** Показывает страницу текущего раздела. Разделы подключаются сюда по мере переноса. */
|
/** Показывает страницу текущего раздела. Разделы подключаются сюда по мере переноса. */
|
||||||
export const PageOutlet: React.FC = () => {
|
export const PageOutlet: React.FC = () => {
|
||||||
@@ -10,6 +12,10 @@ export const PageOutlet: React.FC = () => {
|
|||||||
switch (route.page) {
|
switch (route.page) {
|
||||||
case 'hub':
|
case 'hub':
|
||||||
return <HubPage />;
|
return <HubPage />;
|
||||||
|
case 'resources':
|
||||||
|
return <ResourcesPage />;
|
||||||
|
case 'binder':
|
||||||
|
return <BinderPage />;
|
||||||
default:
|
default:
|
||||||
return <SectionPlaceholder />;
|
return <SectionPlaceholder />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user