-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from joelrobin18/feature/dark_light_theme_sup…
…port Dark Theme Support for Agentneo
- Loading branch information
Showing
30 changed files
with
3,688 additions
and
1,931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import React from 'react'; | ||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; | ||
import { SidebarProvider } from './contexts/SidebarContext'; | ||
import { ProjectProvider } from './contexts/ProjectContext'; | ||
import Overview from './pages/Overview'; | ||
import Analysis from './pages/Analysis'; | ||
import TraceHistory from './pages/TraceHistory'; | ||
import Evaluation from './pages/Evaluation'; | ||
import React from 'react' | ||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' | ||
import { SidebarProvider } from './contexts/SidebarContext' | ||
import { ProjectProvider } from './contexts/ProjectContext' | ||
import Overview from './pages/Overview' | ||
import Analysis from './pages/Analysis' | ||
import TraceHistory from './pages/TraceHistory' | ||
import Evaluation from './pages/Evaluation' | ||
import { ThemeProvider } from '@/theme/ThemeProvider' | ||
|
||
function App() { | ||
function App () { | ||
return ( | ||
<ProjectProvider> | ||
<SidebarProvider> | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<Overview />} /> | ||
<Route path="/analysis" element={<Analysis />} /> | ||
<Route path="/trace-history" element={<TraceHistory />} /> | ||
<Route path="/evaluation" element={<Evaluation />} /> | ||
</Routes> | ||
</Router> | ||
</SidebarProvider> | ||
</ProjectProvider> | ||
); | ||
<ThemeProvider defaultTheme='system' storageKey='vite-ui-theme'> | ||
<ProjectProvider> | ||
<SidebarProvider> | ||
<Router> | ||
<Routes> | ||
<Route path='/' element={<Overview />} /> | ||
<Route path='/analysis' element={<Analysis />} /> | ||
<Route path='/trace-history' element={<TraceHistory />} /> | ||
<Route path='/evaluation' element={<Evaluation />} /> | ||
</Routes> | ||
</Router> | ||
</SidebarProvider> | ||
</ProjectProvider> | ||
</ThemeProvider> | ||
) | ||
} | ||
|
||
export default App; | ||
export default App |
Oops, something went wrong.