mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 18:48:11 +08:00
* menubar 1 * zoom switching * centering, pixel perfect canvas * remove dead args and code * clipping * remove log * if * connect props * lint * undo * logo left, componetize * graph back to full height * shadow to top * do not prematurely call event handlers during render * change test to deal with async histogram creation * left section padding * lint * adjust graph to account for top bar, * lasso tests * refine histogram tests * remove testing (onlys)
62 lines
1.6 KiB
JavaScript
62 lines
1.6 KiB
JavaScript
// jshint esversion: 6
|
|
import React from "react";
|
|
import { Button, Popover, Menu, MenuItem, Position } from "@blueprintjs/core";
|
|
|
|
function InformationMenu(props) {
|
|
const { libraryVersions } = props;
|
|
return (
|
|
<div style={{ marginLeft: 10 }} className="bp3-button-group">
|
|
<Popover
|
|
content={
|
|
<Menu>
|
|
<MenuItem
|
|
href="https://chanzuckerberg.github.io/cellxgene/faq.html"
|
|
target="_blank"
|
|
icon="help"
|
|
text="FAQ"
|
|
/>
|
|
<MenuItem
|
|
href="https://join-cellxgene-users.herokuapp.com/"
|
|
target="_blank"
|
|
icon="chat"
|
|
text="Chat"
|
|
/>
|
|
<MenuItem
|
|
href="https://chanzuckerberg.github.io/cellxgene/"
|
|
target="_blank"
|
|
icon="book"
|
|
text="Docs"
|
|
/>
|
|
<MenuItem
|
|
href="https://github.com/chanzuckerberg/cellxgene"
|
|
target="_blank"
|
|
icon="git-branch"
|
|
text="Github"
|
|
/>
|
|
<MenuItem
|
|
target="_blank"
|
|
text={`cellxgene v${
|
|
libraryVersions && libraryVersions.cellxgene
|
|
? libraryVersions.cellxgene
|
|
: null
|
|
}`}
|
|
/>
|
|
<MenuItem text="MIT License" />
|
|
</Menu>
|
|
}
|
|
position={Position.BOTTOM_RIGHT}
|
|
>
|
|
<Button
|
|
type="button"
|
|
className="bp3-button bp3-icon-info-sign"
|
|
style={{
|
|
cursor: "pointer"
|
|
}}
|
|
/>
|
|
</Popover>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default InformationMenu;
|