diff --git a/frontend/src/App.js b/frontend/src/App.js
index 7b61887..b6fef72 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -6,7 +6,6 @@ import Login from './Components/Login';
import Navigation from './Components/Navigation';
// import { useNavigate, useDispatch } from "react-router-dom";
import Profile from './Components/Profile';
-import Status from './Components/Status';
import {useSelector} from 'react-redux'; // import useSelector from react-redux
import { Route, Navigate, Routes, useNavigate } from 'react-router-dom'; // import Route and Navigate from react-router-dom
import Scheduling from './Components/Scheduling';
@@ -68,8 +67,6 @@ function App() {
onGroupSizeChange={handleGroupSizeChange} // Changed from props.onGroupSizeChange
onTimeSlotChange={handleTimeSlotChange}
/>
-
-
);
}
diff --git a/frontend/src/Components/Scheduling.js b/frontend/src/Components/Scheduling.js
index 36f308c..2f97db2 100644
--- a/frontend/src/Components/Scheduling.js
+++ b/frontend/src/Components/Scheduling.js
@@ -1,9 +1,9 @@
import React from 'react';
import '../SCSS/scheduling.css';
+import Status from './Status';
import {useDispatch} from 'react-redux';
import {useSelector} from 'react-redux'; // import useSelector from react-redux
import { addUserToScheduling } from '../store/scheduling';
-
const Scheduling = (props) => {
const dispatch = useDispatch()
const user = useSelector((state) => state.session.user);
@@ -31,6 +31,7 @@ const Scheduling = (props) => {
dispatch(addUserToScheduling(userId))
}
return (
+ <>
Fancy having lunch together with interesting people?
@@ -53,7 +54,10 @@ const Scheduling = (props) => {
-
+
+
+
+ {/*
+
*/}
-
+ {/*
Use default settings for a quick match.
@@ -83,8 +87,11 @@ const Scheduling = (props) => {
-
+
*/}
+
+
+ >
);
};
export default Scheduling;
diff --git a/frontend/src/Components/Scheduling.js.orig b/frontend/src/Components/Scheduling.js.orig
new file mode 100644
index 0000000..a7db420
--- /dev/null
+++ b/frontend/src/Components/Scheduling.js.orig
@@ -0,0 +1,101 @@
+import React from 'react';
+import '../SCSS/scheduling.css';
+<<<<<<< HEAD
+import {useDispatch} from 'react-redux';
+import {useSelector} from 'react-redux'; // import useSelector from react-redux
+import { addUserToScheduling } from '../store/scheduling';
+=======
+import Status from './Status';
+>>>>>>> deploy
+
+const Scheduling = (props) => {
+ const dispatch = useDispatch()
+ const user = useSelector((state) => state.session.user);
+ const userId = user?.user?.id;
+
+
+ const generateTimeSlots = () => {
+ let slots = [];
+ for (let i = 11; i <= 14; i++) {
+ for (let j = 0; j < 60; j += 30) {
+ if (i === 14 && j > 0) break; // Avoid adding 14:30
+ const hour = String(i).padStart(2, '0');
+ const minute = String(j).padStart(2, '0');
+ slots.push(`${hour}:${minute}`);
+ }
+ }
+ return slots;
+ };
+
+ const featureSoon = () => {
+ window.alert('Feature coming soon!');
+ };
+
+ const sendSchedulingData = () => {
+ dispatch(addUserToScheduling(userId))
+ }
+ return (
+ <>
+
+
+ Fancy having lunch together with interesting people?
+
+
+
+
+ Time Slot:
+
+
+
+
+
+
+ {/*
+
+ Group Size:
+
+ props.onGroupSizeChange(e.target.value)
+ }
+ />
+ {props.groupSize} Persons
+
+
*/}
+
+ {/*
+
+
+
Use default settings for a quick match.
+
+
+
+
Adjust settings to find your perfect match.
+
+
+
+
+
*/}
+
+
+
+ >
+ );
+};
+export default Scheduling;