mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 06:17:29 +08:00
### What problem does this PR solve? Renovate global navigation bar, align styles to the design. (May causes minor layout issues in sub-pages, will check and fix soon) ### Type of change - [x] Refactoring
20 lines
613 B
TypeScript
20 lines
613 B
TypeScript
import { useFetchKnowledgeBaseConfiguration } from '@/hooks/use-knowledge-request';
|
|
import { KnowledgeBaseProvider } from '@/pages/dataset/contexts/knowledge-base-context';
|
|
|
|
import { Outlet } from 'react-router';
|
|
import { SideBar } from './sidebar';
|
|
|
|
export default function DatasetWrapper() {
|
|
const { data, loading } = useFetchKnowledgeBaseConfiguration();
|
|
|
|
return (
|
|
<KnowledgeBaseProvider knowledgeBase={data} loading={loading}>
|
|
<article className="pt-3 size-full grid grid-cols-[auto_1fr] grid-rows-1">
|
|
<SideBar />
|
|
|
|
<Outlet />
|
|
</article>
|
|
</KnowledgeBaseProvider>
|
|
);
|
|
}
|