mirror of
https://github.com/outline/outline.git
synced 2026-11-28 08:14:58 +03:00
fix: <Link /> warning
This commit is contained in:
1 parent
29cb3d0fe8
commit
3db37a3bf9
2 files changed
+3
-3
No files matched your search
@@ -215,9 +215,7 @@ function HoverPreviewInternal({ element, onClose }: Props) {
|
||||
<Card>
|
||||
<Margin />
|
||||
<CardContent>
|
||||
<Content
|
||||
to={data.type !== "mention" ? data.meta.url : undefined}
|
||||
>
|
||||
<Content to={data.meta.url}>
|
||||
<Heading>{data.title}</Heading>
|
||||
<Info data={data} />
|
||||
</Content>
|
||||
@@ -346,6 +344,7 @@ const Pointer = styled.div<{ offset: number }>`
|
||||
|
||||
const Content = styled(Link)`
|
||||
cursor: var(--pointer);
|
||||
${(props) => (!props.to ? "pointer-events: none" : "")}
|
||||
`;
|
||||
|
||||
const Heading = styled.h2`
|
||||
|
||||
@@ -52,6 +52,7 @@ router.post(
|
||||
id: mentionedUser.id,
|
||||
lastActiveAt: mentionedUser.lastActiveAt,
|
||||
lastViewedAt: lastView ? lastView.updatedAt : undefined,
|
||||
url: "",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user