Skip to content

Commit

Permalink
Hash router fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwilkins committed Jan 21, 2025
1 parent f3a3c57 commit 7558b4d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Christian Wilkins | Portfolio</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
16 changes: 3 additions & 13 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Christian Wilkins",
"name": "Christian Wilkins Portfolio",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
}
5 changes: 3 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Home from "./pages/Home";
import { ThemeProvider } from "./context/ThemeContext";
import { useTheme } from "./context/ThemeContext";
import ThemeToggle from "./components/ThemeToggle";
import { HashRouter } from "react-router-dom";

function AppContent() {
const { isDarkMode } = useTheme();
Expand Down Expand Up @@ -66,9 +67,9 @@ function AppContent() {
function App() {
return (
<ThemeProvider>
<Router>
<HashRouter>
<AppContent />
</Router>
</HashRouter>
</ThemeProvider>
);
}
Expand Down

0 comments on commit 7558b4d

Please sign in to comment.