From f453c76a1a2052d690fedd1af87496c7a62b7920 Mon Sep 17 00:00:00 2001 From: Jagoda11 Date: Mon, 23 Dec 2024 03:45:49 +0100 Subject: [PATCH] another attempt on gh-pages --- src/App.tsx | 3 +-- src/index.tsx | 10 +--------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ee8ca73..32bb5bd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 (
diff --git a/src/index.tsx b/src/index.tsx index f09cdc5..2d5152a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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( - - - , - ) -} else { - console.error('Root container not found') + root.render() }