Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Jul 27, 2024
1 parent 9741b4b commit 9046e99
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apps/nar-v3/src/components/SliceCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ import { NavigateNext, NavigatePrevious } from "./Navigation";
import styles from "../styles";

function ControlledTerm(props) {
console.log(props.term);
if (props.term.definition) {
return <Tooltip title={props.term.definition}>{props.term.name}</Tooltip>;
return (
<Tooltip title={props.term.definition + props.term.description}>
<span>{props.term.name}</span>
</Tooltip>
);
} else {
return props.term.name;
}
Expand All @@ -41,8 +44,13 @@ function SliceCard(props) {

if (slice) {
const data = {
"Location (todo: add link outs)": slice.anatomicalLocation
.map((item) => <ControlledTerm key={item.name} term={item} />),
Location: (
<>
{slice.anatomicalLocation.map((item) => (
<ControlledTerm key={item.name} term={item} />
))}
</>
),
};
return (
<>
Expand Down

0 comments on commit 9046e99

Please sign in to comment.