Add data for email to participant POST
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user