diff --git a/src/components/Authentication/SignUp.jsx b/src/components/Authentication/SignUp.jsx index 5d68d11..95a1c98 100644 --- a/src/components/Authentication/SignUp.jsx +++ b/src/components/Authentication/SignUp.jsx @@ -48,7 +48,7 @@ const SignUp = () => { await registerWithEmailAndPassword(email, password, USER_ROLE, navigate, '/awaitConfirmation', firstName, lastName); // send email to Debbie - const subject = "placeholder"; + const subject = "New User Created Account"; const newEmail = email; await sendEmail(subject, newEmail, emailtemplate); diff --git a/src/components/Catalog/SearchFilter/filterOptions.js b/src/components/Catalog/SearchFilter/filterOptions.js index 7ef251c..f32aefd 100644 --- a/src/components/Catalog/SearchFilter/filterOptions.js +++ b/src/components/Catalog/SearchFilter/filterOptions.js @@ -6,7 +6,6 @@ const seasonOptions = [ const yearOptions = [ { value: 'junior', name: 'Junior' }, { value: 'senior', name: 'Senior' }, - { value: 'both', name: 'Both' }, ]; const subjectOptions = [ { value: 'life skills', name: 'Life Skills' }, diff --git a/src/components/EmailTemplates/emailtemplate.jsx b/src/components/EmailTemplates/emailtemplate.jsx index cafbeab..f5bf224 100644 --- a/src/components/EmailTemplates/emailtemplate.jsx +++ b/src/components/EmailTemplates/emailtemplate.jsx @@ -1,13 +1,15 @@ //import React from 'react'; -import { Email, Item, Span, A } from 'react-html-email'; +import { Email, Item, Span } from 'react-html-email'; const emailTemplate = ({newEmail}) => ( Hello Debbie, - A user with the email {newEmail} has created an account and is waiting for your approval. - react-html-email. + + A user with the email {newEmail} has created an account and is waiting for your approval. + + Thank you. diff --git a/src/components/Events/Events.jsx b/src/components/Events/Events.jsx index fd3a462..85b4938 100644 --- a/src/components/Events/Events.jsx +++ b/src/components/Events/Events.jsx @@ -36,7 +36,18 @@ const Events = ({ eventData }) => { eventDataWithBreaks.push(currentEvent); const currEnd = currentEvent.endTime.split(':').slice(0,2).join(":"); const nextStart = nextEvent.startTime.split(':').slice(0,2).join(":"); - if (currEnd < nextStart) { + + const endHour = currEnd.split(':')[0] + const endMin = currEnd.split(':')[1] + const convertTimeToMin = (hour, min) => { + return parseInt(hour) * 60 + parseInt(min); + }; + const startHour = nextStart.split(':')[0] + const startMin = nextStart.split(':')[1] + + const timeDiff = convertTimeToMin(startHour, startMin) - convertTimeToMin(endHour, endMin); + if (currEnd < nextStart && timeDiff >= 5) { + console.log("break"); eventDataWithBreaks.push({ id: maxId, startTime: currentEvent.endTime,