Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Routes for Login , Signup , Forgotpassword and page-not-found pages. #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions frontend-voting/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Sidebar from "./components/Sidebar";
import CreateNewPoll from "./pages/CreateNewpoll";
import PageNotFound from "./components/PageNotFound";
import Result from "./pages/Result";
import ForgotPassword from "./pages/ForgotPassword";

function App() {
const [authCheck, setAuthCheck] = useState<boolean>(false);
Expand Down Expand Up @@ -48,13 +49,17 @@ function App() {
<Route path="/home" element={<Home />} />
<Route path="/createnewpoll" element={<CreateNewPoll />} />
<Route path="/results" element={<Result />} />
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<Signup />} />
<Route path="/forgot-password" element={<ForgotPassword />} />
<Route path="*" element={<PageNotFound />} />
</Routes>
</div>
)}

<div></div>

{/* <Route path="/contact" element={<ContactUs />} />
{/* <Route path="/contact" element={<ContactUs />} />

</Route>
) : (
Expand All @@ -72,4 +77,4 @@ function App() {
);
}

export default App;
export default App;