-
Notifications
You must be signed in to change notification settings - Fork 49
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
CHG autograde test item #264
CHG autograde test item #264
Conversation
const SubmissionTest = ({ | ||
}) =>{ | ||
const classes = useStyles(); | ||
const submission = { |
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.
Please remove the test data, and add the proper ones for props.
import FiberManualRecordIcon from '@material-ui/icons/FiberManualRecord'; | ||
|
||
|
||
export default function SubmissionTest({tests}) { |
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.
Submission test should take the values needed to render one instance of your component not all the tests.
export default function SubmissionTest({tests}) { | ||
const classes = useStyles(); | ||
|
||
if (!tests) { |
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.
dont need this.
return null; | ||
} | ||
return ( | ||
<React.Fragment> |
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.
Remove this
} | ||
return ( | ||
<React.Fragment> | ||
{tests.map((test, index) => ( |
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.
No need to map, there should only be one instance in here.
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.
Good Job!
Signed-off-by: John McCann Cunniff Jr <[email protected]>
No description provided.