Skip to content

Commit

Permalink
fix duplicate error
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiDubauskas committed Sep 5, 2023
1 parent c729e1d commit cc13cec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 14 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ const Root = () => {
</>
);
};
const Base = () => {
return (
<div className="he">
<p>Hello World</p>
</div>
);
}

const router = createBrowserRouter(
createRoutesFromElements(
<Route path="/" element={<Root />}>
<Route index element={<Login />} />
<Route path="forgot-password" element={<PasswordReset />}></Route>
<Route path="forgot-password" element={<PasswordReset />} />
<Route element={<PrivateRoute />}>
<Route path="dashboard" element={<DashboardLayout />}>
<Route
Expand Down Expand Up @@ -119,6 +126,7 @@ const router = createBrowserRouter(
</Route>
</Route>
</Route>

</Route>
)
);
Expand All @@ -132,3 +140,8 @@ const App = () => {
};

export default App;





2 changes: 1 addition & 1 deletion src/contexts/AuthContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const AuthProvider = ({ children }) => {

return (
<AuthContext.Provider value={value}>
{!loading && children}
{children}
</AuthContext.Provider>
);
};
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ import App from "./App";
// Mount the App component to the DOM element with id "root"
const root = createRoot(document.getElementById("root"));
root.render(

<App />

);

1 comment on commit cc13cec

@vercel
Copy link

@vercel vercel bot commented on cc13cec Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.