-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from qoretechnologies/develop
v1.1.11
- Loading branch information
Showing
32 changed files
with
649 additions
and
747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
// @flow | ||
import { Menu, MenuItem, Popover, PopoverInteractionKind, Position } from '@blueprintjs/core'; | ||
import { ReqoreDropdown } from '@qoretechnologies/reqore'; | ||
import map from 'lodash/map'; | ||
import React from 'react'; | ||
import { browserHistory } from 'react-router'; | ||
|
||
type Props = { | ||
links: any; | ||
}; | ||
|
||
// @ts-ignore ts-migrate(2724) FIXME: 'React' has no exported member named 'Element'. Di... Remove this comment to see the full error message | ||
const CollapsedCrumb: Function = ({ links }: Props) => ( | ||
<li> | ||
<Popover | ||
position={Position.BOTTOM_LEFT} | ||
interactionKind={PopoverInteractionKind.HOVER} | ||
content={ | ||
<Menu> | ||
{map(links, (link, name) => ( | ||
<MenuItem key={name} text={name} onClick={() => browserHistory.push(link)} /> | ||
))} | ||
</Menu> | ||
} | ||
> | ||
<span className="bp3-breadcrumbs-collapsed" /> | ||
</Popover> | ||
</li> | ||
<ReqoreDropdown | ||
items={map(links, (link, name) => ({ | ||
label: name, | ||
onClick: () => browserHistory.push(link), | ||
}))} | ||
/> | ||
); | ||
|
||
export default CollapsedCrumb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.