docs: change report issue link (#10160)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { GITHUB_ISSUES_PREFIX, GITHUB_UI_ISSUES_PREFIX } from "../constants"
|
||||
|
||||
export type ReportLinkType = "default" | "ui"
|
||||
|
||||
export function formatReportLink(
|
||||
title: string,
|
||||
sectionTitle: string,
|
||||
type?: ReportLinkType
|
||||
) {
|
||||
let prefix = GITHUB_ISSUES_PREFIX
|
||||
if (type === "ui") {
|
||||
prefix = GITHUB_UI_ISSUES_PREFIX
|
||||
}
|
||||
return `${prefix}&title=${encodeURI(title)}%3A%20Issue%20in%20${encodeURI(
|
||||
sectionTitle
|
||||
)}`
|
||||
}
|
||||
@@ -3,7 +3,6 @@ export * from "./capitalize"
|
||||
export * from "./check-sidebar-item-visibility"
|
||||
export * from "./decode-str"
|
||||
export * from "./dom-utils"
|
||||
export * from "./format-report-link"
|
||||
export * from "./get-link-with-base-path"
|
||||
export * from "./get-navbar-items"
|
||||
export * from "./get-os-shortcut"
|
||||
|
||||
Reference in New Issue
Block a user