Add data for email to participant POST
This commit is contained in:
parent
1cd658be06
commit
8edd9ce651
@ -90,6 +90,7 @@ export default function App() {
|
||||
path='/invite'
|
||||
component={Invite}
|
||||
currentMeeting={currentMeeting}
|
||||
currentUser={currentUser}
|
||||
/>
|
||||
</Switch>
|
||||
</Router>
|
||||
|
@ -45,7 +45,7 @@ export default function IntervalSelector({
|
||||
const timegridBody = el.querySelectorAll('div.fc-timegrid-body');
|
||||
const timegridSlots = el.querySelectorAll('div.fc-timegrid-slots');
|
||||
const timegridScroll = el.querySelectorAll(
|
||||
'table.fc-col-header.fc-scrollgrid-sync-table',
|
||||
'.fc-col-header.fc-scrollgrid-sync-table',
|
||||
);
|
||||
|
||||
console.log(timegridScroll);
|
||||
|
@ -7,7 +7,7 @@ import { backend } from '../helpers/http-common';
|
||||
import './styles/Invite.less';
|
||||
import './styles/layout.less';
|
||||
|
||||
export default function Invite({ currentMeeting }) {
|
||||
export default function Invite({ currentMeeting, currentUser }) {
|
||||
const [emailList, setEmailList] = useState([]);
|
||||
const [contactDropdown, setContactDropdown] = useState([]);
|
||||
const [status, setStatus] = useState({
|
||||
@ -72,6 +72,9 @@ export default function Invite({ currentMeeting }) {
|
||||
mandatory: false, // update when implementing functionality
|
||||
host: 0, // update when implementing functionality
|
||||
answered: 0,
|
||||
// Info for invite email
|
||||
senderUsername: currentUser.username,
|
||||
meetingTitle: currentMeeting.title,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -53,7 +53,7 @@ export default function Login() {
|
||||
};
|
||||
|
||||
if (isAuthenticated) {
|
||||
return <Redirect to='/dashboard' />;
|
||||
return <Redirect to='/schedule' />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -155,6 +155,9 @@ export default function Schedule({
|
||||
mandatory: 0, // 'false' while functionality not implemented
|
||||
host: 1,
|
||||
answered: 0,
|
||||
// Info for invite email
|
||||
senderUsername: currentUser.username,
|
||||
meetingTitle: currentMeeting.title,
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
|
Loading…
Reference in New Issue
Block a user