Skip to content

Commit

Permalink
fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
sgcm14 committed Sep 8, 2024
1 parent de767e1 commit d408fa2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; URL=./index.html" />
</head>
<body></body>
</html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="./assets/index-_WSLOJto.js"></script>
<script type="module" crossorigin src="./assets/index-egdyAx_c.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DM5NbPrY.css">
</head>
<body>
Expand Down
3 changes: 1 addition & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Link, Outlet } from "react-router-dom";
import "./App.css";
import { Link } from "react-router-dom";
import { Outlet} from "react-router-dom"

function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import App from "./App";
import Home from "./Home";
import About from "./About";
import Faqs from "./Faqs";
import App from "./App";
import "./index.css";

ReactDOM.createRoot(document.getElementById("root")).render(
Expand Down

0 comments on commit d408fa2

Please sign in to comment.