Skip to content

Commit

Permalink
Merge pull request #186 from TeamProductionSystem/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
GitLukeW authored Sep 18, 2023
2 parents 6c5fafe + 67fc1be commit 1afcca5
Showing 1 changed file with 33 additions and 13 deletions.
46 changes: 33 additions & 13 deletions src/pages/SessionSignup/SessionSignup.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function SessionSignup({ token }) {
setSelectedStartTime(start);
};

useEffect(() => {}, [selectedStartTime]);
useEffect(() => { }, [selectedStartTime]);

const getTimeBlocks = (start, end, blockLength, slotPk) => {
const startTime = start instanceof Date ? start : new Date(start);
Expand Down Expand Up @@ -133,6 +133,7 @@ export default function SessionSignup({ token }) {
end.getFullYear(),
end.getMonth(),
end.getDate()

);
const selectedDayOnly = new Date(
selected.getFullYear(),
Expand All @@ -147,13 +148,13 @@ export default function SessionSignup({ token }) {
const blockEndTime =
selectedDayOnly < endDay
? new Date(
selected.getFullYear(),
selected.getMonth(),
selected.getDate(),
23,
59,
59
)
selected.getFullYear(),
selected.getMonth(),
selected.getDate(),
23,
59,
59
)
: end;
return getTimeBlocks(
blockStartTime,
Expand Down Expand Up @@ -246,10 +247,10 @@ export default function SessionSignup({ token }) {
>
<InputLabel
id="skills"
size="small"
variant="filled"
sx={{
color: "#000",
"&.Mui-focused": { color: "#000" },
"&.MuiInputLabel-shrink": { color: "#000" },
background: "white",
}}
>
Select A Topic
Expand All @@ -276,7 +277,16 @@ export default function SessionSignup({ token }) {
borderRadius: 4,
}}
>
<InputLabel id="select-day">Select a Day</InputLabel>
<InputLabel
id="select-day"
size="small"
variant="filled"
sx={{
background: "white",
}}
>
Select a Day
</InputLabel>
<Select
labelId="select-day"
label="Select a Day"
Expand All @@ -295,9 +305,19 @@ export default function SessionSignup({ token }) {
minWidth: "13.75rem",
backgroundColor: "#FFFFFF",
borderRadius: 4,
size: "small",
}}
>
<InputLabel id="time-block">Select Time Block</InputLabel>
<InputLabel
id="time-block"
size="small"
variant="filled"
sx={{
background: "white",
}}
>
Select Time Block
</InputLabel>
<Select
labelId="time-block"
label="Select Time Block"
Expand Down

0 comments on commit 1afcca5

Please sign in to comment.