Skip to content

Commit

Permalink
another attempt on gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Dec 23, 2024
1 parent 8b31580 commit f453c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react'
import { HashRouter as Router, Route, Routes, Link } from 'react-router-dom'
import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom'
import Auth from './components/Auth'
import Dashboard from './components/Dashboard'
import CommitList from './components/CommitList'

const App: React.FC = () => {
const token = localStorage.getItem('githubToken')

return (
<Router basename="/github-insights-dashboard">
<div className="p-4">
Expand Down
10 changes: 1 addition & 9 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@ import React from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'

console.log('Index file loaded')
const container = document.getElementById('root')
if (container) {
console.log('Root container found')
const root = createRoot(container)
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
} else {
console.error('Root container not found')
root.render(<App />)
}

0 comments on commit f453c76

Please sign in to comment.