-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feaure/sidhantrohatgi/prescreeningquestions #32
Conversation
Changed the Prescreening tsx Added CSS for Text
Changed Submit button to use the default button with the Button component's CSS.
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.
Great work!!!!! Just a few small things to change. I tried to link to all the necesary things and be specific about the changes. Let me know if there are still unclear things. Make sure to pull the updated changes from main as well.
1. Please select the appropriate amount of experience you currently have. | ||
</p> | ||
|
||
<br></br> |
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.
Lets do self closing tags so <br />
for this one and all other <br>
tags
|
||
const navigate = useNavigate(); | ||
|
||
const handleFormSubmit = (e: React.FormEvent<HTMLFormElement>) => { |
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.
Pull the code from main. Hrithik changes in button should work. The function would be
const handleFormSubmit = () => { ....}
and the e.preventDefault(); won't be needed
Lets try to keep it consistent and just use our own button component
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 file should be in the pages folder not the components folder
); | ||
} | ||
|
||
export default PrescreeningForm; |
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.
We don't need this line here. We exported the function before and the convention in this project is to not use export default
frontend/src/components/index.ts
Outdated
@@ -5,5 +5,6 @@ import { NavBar } from "./NavBar.tsx"; | |||
import { Page } from "./Page.tsx"; | |||
import { Pathway } from "./Pathway.tsx"; | |||
import { PathwayTimeline } from "./PathwayTimeline.tsx"; | |||
import { PrescreeningForm } from "./PrescreeningForm.tsx"; |
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 import should be in the index.ts
file in the pages folder after you moved the files
|
||
<div className={styles.centeredContainer}> | ||
<button className={buttonStyle.button} type="submit" form="form1" value="Submit"> | ||
Submit |
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.
Figma has this as continue instead of submit. Let's follow the figma
@@ -72,7 +72,7 @@ export function NavBar() { | |||
</a> | |||
</li> | |||
<li> | |||
<NavLink className={styles.navLink} to={"/apply"}> | |||
<NavLink className={styles.navLink} to={"/prescreening"}> | |||
<Button onClick={null}>Apply</Button> |
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.
There are also a few buttons on the home page here and here to update.
You can either use the useNavigate method you did in the handleSubmit
or the window.location.href
way used in the Congradulations popup
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.
Nice work
{/* Question 1 */} | ||
<div> |
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.
|
||
<label htmlFor="op11" className={styles.label}> | ||
<p> | ||
5+ years of Diversified Design Experience <strong> and/or </strong> 40+ Core Units |
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.
There is missing indentation for the radio points.
Tracking Info
Resolves #8
Changes
Implemented front end for the prescreening questions page (Page accessible by clicking on Apply in the Nav Bar)
Testing
Confirmation of Change
Page:
Page with selected options:
Redirected to this page according to the user's answers: