Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/components/RecentActivity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { RecentActivityTable, isRecent } from "./RecentActivityTable";
import * as s from "./styles";

import { isString } from "../../typeGuards/isString";
import { actions as globalActions } from "../common/App";
import { ConfigContext } from "../common/App/ConfigContext";
import { EntrySpan, RecentActivityData, RecentActivityProps } from "./types";

Expand All @@ -33,6 +34,15 @@ const actions = addPrefix(ACTION_PREFIX, {
CLOSE_LIVE_VIEW: "CLOSE_LIVE_VIEW"
});

const handleDigWithDigmaLinkClick = () => {
window.sendMessageToDigma({
action: globalActions.OPEN_URL_IN_DEFAULT_BROWSER,
payload: {
url: documentationURL
}
});
};

const renderNoData = () => {
return (
<s.NoDataContainer>
Expand All @@ -45,12 +55,7 @@ const renderNoData = () => {
<s.NoDataText>
Check out our documentation to learn how to
</s.NoDataText>

<s.DocumentationLink
href={documentationURL}
rel={"noopener noreferrer"}
target={"_blank"}
>
<s.DocumentationLink onClick={handleDigWithDigmaLinkClick}>
dig with digma
</s.DocumentationLink>
</>
Expand Down