-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doctom: Add contact page #113
base: main
Are you sure you want to change the base?
Conversation
15e7f77
to
9c41650
Compare
9c41650
to
2310a4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, a few questions to clarify here:
email: string; | ||
year: string; | ||
major: string; | ||
// TODO: ask if we still want to do user-submitted questions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Did we ever ask about this? If so, was this implemented or not?
email: string; | ||
year: string; | ||
major: string; | ||
// TODO: ask if we still want to do user-submitted questions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Did we ever ask about this? If so, was this implemented or not?
return ( | ||
<div> | ||
<Container maxWidth="md"> | ||
<Helmet> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ What does <Helmet>
do? why do we use this
<TextField | ||
label="First Name" | ||
value={data.firstName} | ||
onChange={(event) => setData({...data, firstName: event.target.value})} | ||
/> | ||
<TextField | ||
label="Last Name" | ||
value={data.lastName} | ||
onChange={(event) => setData({...data, lastName: event.target.value})} | ||
/> | ||
<TextField | ||
label="Email" | ||
value={data.email} | ||
onChange={(event) => setData({...data, email: event.target.value})} | ||
/> | ||
<TextField | ||
label="Graduation Year" | ||
value={data.year} | ||
onChange={(event) => setData({...data, year: event.target.value})} | ||
/> | ||
<TextField | ||
label="Major" | ||
value={data.major} | ||
onChange={(event) => setData({...data, major: event.target.value})} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ It looks like there's a lot being repeated here - could we possibly abstract this out into something?
/> | ||
</RadioGroup> | ||
<StyledButton onClick={(event) => { | ||
console.log('submitting form', data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pretty big function - could we possibly break it up into a few smaller functions?
PR review emoji guide: https://github.com/erikthedeveloper/code-review-emoji-guide
ℹ️ Issue
Closes #999
📝 Description
Briefly list the changes made to the code:
✔️ Verification
Contact page:
🏕️ (Optional) Future Work / Notes
Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!