mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add FilesTable #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -15,6 +15,7 @@ import weekYear from 'dayjs/plugin/weekYear';
|
||||
import weekday from 'dayjs/plugin/weekday';
|
||||
import React, { ReactNode, useEffect, useState } from 'react';
|
||||
import { ThemeProvider, useTheme } from './components/theme-provider';
|
||||
import { TooltipProvider } from './components/ui/tooltip';
|
||||
import storage from './utils/authorization-util';
|
||||
|
||||
dayjs.extend(customParseFormat);
|
||||
@ -78,11 +79,13 @@ const RootProvider = ({ children }: React.PropsWithChildren) => {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ThemeProvider defaultTheme="light" storageKey="ragflow-ui-theme">
|
||||
<Root>{children}</Root>
|
||||
</ThemeProvider>
|
||||
</QueryClientProvider>
|
||||
<TooltipProvider>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ThemeProvider defaultTheme="light" storageKey="ragflow-ui-theme">
|
||||
<Root>{children}</Root>
|
||||
</ThemeProvider>
|
||||
</QueryClientProvider>
|
||||
</TooltipProvider>
|
||||
);
|
||||
};
|
||||
export function rootContainer(container: ReactNode) {
|
||||
|
||||
Reference in New Issue
Block a user