mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* added feature to render Link element in table component * code and logic enhancement * bug fixed href is not updating * removing href property
17 lines
290 B
JavaScript
17 lines
290 B
JavaScript
import React from 'react';
|
|
|
|
export const Link = ({ cellValue, linkTarget }) => {
|
|
return (
|
|
<div>
|
|
<a
|
|
href={cellValue}
|
|
target={linkTarget}
|
|
onClick={(e) => {
|
|
e.stopPropagation();
|
|
}}
|
|
>
|
|
{cellValue}
|
|
</a>
|
|
</div>
|
|
);
|
|
};
|