Removal of old view on github from dom

This commit is contained in:
tidy-dev 2021-11-03 16:03:01 -04:00
parent a5ea6eb009
commit 5bf26ccda0
2 changed files with 0 additions and 15 deletions

View file

@ -77,7 +77,6 @@ export class CICheckRunListItem extends React.PureComponent<
baseHref={baseHref}
loadingActionLogs={loadingActionLogs}
loadingActionWorkflows={loadingActionLogs}
onViewOnGitHub={this.onViewOnGitHub}
onMarkdownLinkClicked={this.props.onMarkdownLinkClicked}
/>
) : null}

View file

@ -5,7 +5,6 @@ import {
RefCheckOutputType,
} from '../../lib/ci-checks/ci-checks'
import classNames from 'classnames'
import { Button } from '../lib/button'
import { CICheckRunActionLogs } from './ci-check-run-actions-logs'
import { SandboxedMarkdown } from '../lib/sandboxed-markdown'
@ -24,7 +23,6 @@ interface ICICheckRunLogsProps {
readonly baseHref: string | null
/** Callback to opens check runs on GitHub */
readonly onViewOnGitHub: (checkRun: IRefCheck) => void
/** Callback to open URL's originating from markdown */
readonly onMarkdownLinkClicked: (url: string) => void
@ -32,9 +30,6 @@ interface ICICheckRunLogsProps {
/** The CI check list item. */
export class CICheckRunLogs extends React.PureComponent<ICICheckRunLogsProps> {
private onViewOnGitHub = () => {
this.props.onViewOnGitHub(this.props.checkRun)
}
private isNoAdditionalInfoToDisplay(output: IRefCheckOutput): boolean {
return (
@ -136,14 +131,6 @@ export class CICheckRunLogs extends React.PureComponent<ICICheckRunLogsProps> {
return <div className="no-logs-to-display">Loading</div>
}
private renderViewOnGitHub = () => {
return (
<div className="view-on-github">
<Button onClick={this.onViewOnGitHub}>View on GitHub</Button>
</div>
)
}
private hasActionsWorkflowLogs() {
return this.props.checkRun.actionsWorkflowRunId !== undefined
}
@ -177,7 +164,6 @@ export class CICheckRunLogs extends React.PureComponent<ICICheckRunLogsProps> {
: this.renderMetaOutput(output, name)}
{logsOutput}
</div>
{this.renderViewOnGitHub()}
</div>
)
}