Skip to content

Commit

Permalink
clean and add styles to links
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Dec 19, 2023
1 parent c2f5b1d commit 99e5932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

.link {
color: var(--primary-fill);
cursor: pointer;
text-decoration: underline;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ interface LinkProps {
const Link: FC<LinkProps> = (props) => {
const { attributes, element, children } = props;
const { onInternalLinkClick } = useInternalLink();

console.log(element);
const internalLink = parseMessageLink(element.url);

console.log(element);
if (internalLink) {
console.log("internalLink");
return (
<a
{...attributes}
Expand Down

0 comments on commit 99e5932

Please sign in to comment.