From 22b5a79d126359ddeffaac4fd7837ac91e50d8f1 Mon Sep 17 00:00:00 2001
From: Ram123-hub <96813387+Ram123-hub@users.noreply.github.com>
Date: Sat, 24 Jun 2023 09:47:52 +0530
Subject: [PATCH] Update App.jsx
Adding route and component in the code
---
src/App.jsx | 68 +++++++++++++++++++++++++++++++++++++----------------
1 file changed, 48 insertions(+), 20 deletions(-)
diff --git a/src/App.jsx b/src/App.jsx
index 7743965b..b86833e0 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -32,28 +32,56 @@ function App() {
*/
return (
+
- Finish the assignment! Look at the comments in App.jsx as a starting point
+
+
+
+
- )
+
+ );
}
-// A demo component
-function ProblemStatement(props) {
- const title = props.title;
- const acceptance = props.acceptance;
- const difficulty = props.difficulty;
-
- return
-
- {title}
- |
-
- {acceptance}
- |
-
- {difficulty}
- |
-
+function LoginPage() {
+ return Login Page
;
}
-export default App
+
+function SignupPage() {
+ return Signup Page
;
+}
+
+function AllProblemsPage() {
+ return (
+
+
All Problems
+
+
+
+ Title |
+ Acceptance |
+ Difficulty |
+
+
+
+ {problems.map((problem, index) => (
+
+
+ {problem.title}
+ |
+ {problem.acceptance} |
+ {problem.difficulty} |
+
+ ))}
+
+
+
+ );
+}
+
+function SingleProblemPage() {
+ return Single Problem Page
;
+}
+
+export default App;
+