-
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 Assignment Card #256
CHG Assignment Card #256
Conversation
web/src/Components/Public/Assignments/AssignmentCardV2/AssignmentCardV2.jsx
Show resolved
Hide resolved
web/src/Components/Public/Assignments/AssignmentCardV2/AssignmentCardV2.styles.jsx
Outdated
Show resolved
Hide resolved
<Box className={classes.courseActionsContainer}> | ||
<Button | ||
onClick = {() => { | ||
history.push(`/courses/assignments?courseId=${id}`); |
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.
replace with history.push('/courses/assignment?assignmentId=${id}')
}) => { | ||
const classes = useStyles(); | ||
|
||
let due_days = Math.round((new Date(due_date) - new Date())/(1000*3600*24)); |
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.
use const
not let
}) => { | ||
const classes = useStyles(); | ||
|
||
let due_days = Math.round((new Date(due_date) - new Date())/(1000*3600*24)); | ||
due_days=9; |
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 line
<Box className={classes.courseActionsContainer}> | ||
<Button | ||
onClick = {() => { | ||
history.push(`/courses/assignments/submissions?assignmentId=${id}`); |
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 still not it.
you need to be hitting /courses/assignment?addingmentId=${id}
Signed-off-by: John McCann Cunniff Jr <[email protected]>
This solves the issue 246