mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-02-05 08:23:08 +00:00
add documentation
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
||||
import { useHashRoute } from './hooks/useHashRoute'
|
||||
import App from './App'
|
||||
import { DocsPage } from './components/docs/DocsPage'
|
||||
import './styles/globals.css'
|
||||
// Note: Custom theme removed - using shadcn/ui theming instead
|
||||
|
||||
@@ -14,10 +16,16 @@ const queryClient = new QueryClient({
|
||||
},
|
||||
})
|
||||
|
||||
function Router() {
|
||||
const { route } = useHashRoute()
|
||||
if (route === 'docs') return <DocsPage />
|
||||
return <App />
|
||||
}
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<App />
|
||||
<Router />
|
||||
</QueryClientProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user