Skip to content

Commit

Permalink
Merge pull request #1445 from alliance-genome/tooltip-fix
Browse files Browse the repository at this point in the history
add getIdentifier to EditorTooltip
  • Loading branch information
adamgibs authored Feb 27, 2024
2 parents 6446f47 + 0352745 commit eaea2fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/cliapp/src/components/Autocomplete/EditorTooltip.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from "react";
import {Tooltip} from "primereact/tooltip";
import { getIdentifier } from "../../utils/utils";

export const EditorTooltip = ({op, autocompleteHoverItem}) => {
const identifier = getIdentifier(autocompleteHoverItem);
const identifierText = `Indentifier: ${identifier}`;

return (
<>
<Tooltip ref={op} style={{width: '450px', maxWidth: '450px'}} position={'right'} mouseTrack mouseTrackLeft={30}>
{autocompleteHoverItem.curie &&
<div>Curie: {autocompleteHoverItem.curie}
{identifier &&
<div>{identifierText}
<br/>
</div>
}
Expand Down

0 comments on commit eaea2fb

Please sign in to comment.