-
Notifications
You must be signed in to change notification settings - Fork 42
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
Issue 763 - Changed relevant HTML anchors to use Button components instead #774
base: master
Are you sure you want to change the base?
Changes from all commits
371913f
c47e31a
947c4b5
fd43387
72406c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,4 @@ test_position_paper.doc | |
env/ | ||
.vscode/ | ||
|
||
huxley/service.json | ||
huxley-venv/ | ||
huxley/service.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,33 +30,25 @@ class PaperSubmissionTable extends React.Component { | |
var fileNames = paper.file.split("/"); | ||
var fileName = fileNames[fileNames.length - 1]; | ||
var gradedButton = paper.graded ? ( | ||
<a | ||
className={cx({ | ||
button: true, | ||
"button-large": true, | ||
"button-blue": true, | ||
"rounded-small": true, | ||
})} | ||
<Button | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing import to Button at the top of the file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think line 8 |
||
size="large" | ||
color="blue" | ||
href={gradedHrefData} | ||
download={"graded_" + fileName} | ||
> | ||
Download Graded Paper | ||
</a> | ||
</Button> | ||
) : null; | ||
buttons = ( | ||
<div> | ||
<a | ||
className={cx({ | ||
button: true, | ||
"button-large": true, | ||
"button-green": true, | ||
"rounded-small": true, | ||
})} | ||
<Button | ||
size="large" | ||
color="green" | ||
href={hrefData} | ||
download={fileName} | ||
> | ||
Download Paper | ||
</a> | ||
</Button> | ||
{gradedButton} | ||
</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.
also missing Button import I believe, but looks good otherwise