Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
now displaying link properly
Browse files Browse the repository at this point in the history
  • Loading branch information
yyassi-heartex committed Jul 17, 2023
1 parent d1dcdd3 commit e2bf42a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/CandidateTaskView/CandidateTaskView.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ const DataItemVisual = forwardRef(({ columns, dataKey, data }, imageRef) => {
</Elem>
);
} else if (isUrlData) {
<Elem name="data-display" mod={{ link: true }} >
<a href={data} target="_blank">{data}</a>
</Elem>;
return (
<Elem name="data-display" mod={{ link: true }} >
<Elem name="data-link" tag="a" href={data} target="_blank">{data}</Elem>
</Elem>
);
}
return (
<Elem name="data-display" mod={{ [columnDefinition?.currentType ?? "text"]: true }} >
Expand Down

0 comments on commit e2bf42a

Please sign in to comment.