Skip to content
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

Merged

Conversation

busi-reddy-karnati
Copy link
Contributor

No description provided.

const SubmissionTest = ({
}) =>{
const classes = useStyles();
const submission = {
Copy link
Collaborator

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}) {
Copy link
Collaborator

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) {
Copy link
Collaborator

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>
Copy link
Collaborator

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) => (
Copy link
Collaborator

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.

@synoet synoet marked this pull request as ready for review October 14, 2021 18:35
Copy link
Collaborator

@synoet synoet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job!

@synoet synoet merged commit 4a1c254 into AnubisLMS:CHG-UI-REDESIGN Oct 18, 2021
synoet pushed a commit that referenced this pull request Oct 30, 2021
wabscale pushed a commit that referenced this pull request Oct 31, 2021
wabscale pushed a commit that referenced this pull request Nov 1, 2021
wabscale pushed a commit that referenced this pull request Nov 2, 2021
Signed-off-by: John McCann Cunniff Jr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants