Skip to content

Instantly share code, notes, and snippets.

@almet
Created November 6, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/c817898283a1df21a05dac638afcb327 to your computer and use it in GitHub Desktop.
Save almet/c817898283a1df21a05dac638afcb327 to your computer and use it in GitHub Desktop.
diff --git a/formbuilder/components/AdminView.js b/formbuilder/components/AdminView.js
index 8de0b88..c81795e 100644
--- a/formbuilder/components/AdminView.js
+++ b/formbuilder/components/AdminView.js
@@ -25,19 +25,19 @@ export default class AdminView extends Component {
content = (
<div>
<h3>Results for {title}</h3>
- <DropdownButton title="Download as..." id="bg-nested-dropdown" className="pull-right">
- <MenuItem>
+ <DropdownButton title="Download results" id="bg-nested-dropdown" className="pull-right">
+ <li>
<CSVDownloader
schema={this.props.schema}
fields={schemaFields}
records={this.props.records} />
- </MenuItem>
- <MenuItem>
+ </li>
+ <li>
<XLSDownloader
schema={this.props.schema}
fields={schemaFields}
records={this.props.records} />
- </MenuItem>
+ </li>
</DropdownButton>
<URLDisplay url={formUrl} />
<table className="table table-striped">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment