diff --git a/frontend/components/DropdownMenu/DropdownMenu.js b/frontend/components/DropdownMenu/DropdownMenu.js index 0792b5b94..d97f2dc35 100644 --- a/frontend/components/DropdownMenu/DropdownMenu.js +++ b/frontend/components/DropdownMenu/DropdownMenu.js @@ -9,16 +9,16 @@ import Flex from 'components/Flex'; import { color } from 'styles/constants'; import { fadeAndScaleIn } from 'styles/animations'; -type DropdownMenuProps = { +type Props = { label: React.Element, - onShow?: Function, - onClose?: Function, + onShow?: () => void, + onClose?: () => void, children?: React.Element, style?: Object, }; @observer class DropdownMenu extends React.Component { - props: DropdownMenuProps; + props: Props; actionRef: Object; @observable open: boolean = false; @observable top: number; @@ -47,18 +47,14 @@ type DropdownMenuProps = { }; render() { - const openAction = ( - - ); - return (
- {openAction} + void, children?: React.Element, }) => { return ( diff --git a/frontend/components/Layout/components/SidebarCollections.js b/frontend/components/Layout/components/SidebarCollections.js index 9bd931514..3544e3040 100644 --- a/frontend/components/Layout/components/SidebarCollections.js +++ b/frontend/components/Layout/components/SidebarCollections.js @@ -24,16 +24,11 @@ type Props = { ui: UiStore, }; -const activeStyle = { - color: color.black, - background: color.slateDark, -}; - @observer class SidebarCollections extends React.PureComponent { props: Props; render() { - const { collections, activeDocument, ui } = this.props; + const { history, collections, activeDocument, ui } = this.props; return ( @@ -41,6 +36,7 @@ const activeStyle = { {collections.data.map(collection => ( @@ -83,6 +80,7 @@ const activeStyle = { {(this.isHovering || this.menuOpen) && (this.menuOpen = true)} onClose={() => (this.menuOpen = false)} @@ -93,6 +91,7 @@ const activeStyle = { collection.documents.map(document => ( { - const { document, activeDocument, depth } = props; + const { history, document, activeDocument, depth } = props; const canDropToImport = depth === 0; return ( @@ -120,7 +120,7 @@ const DocumentLink = observer((props: DocumentLinkProps) => { {document.title} } @@ -137,6 +137,7 @@ const DocumentLink = observer((props: DocumentLinkProps) => { document.children.map(childDocument => ( diff --git a/frontend/styles/base.css b/frontend/styles/base.css index 52f316ae8..27eabf039 100644 --- a/frontend/styles/base.css +++ b/frontend/styles/base.css @@ -129,3 +129,11 @@ hr { padding: 1em; border-radius: 0.25em; } + +.activeDropZone { + background: #4E5C6E; +} + +.activeDropZone a { + color: #FFF !important; +}