Skip to content

Commit b3d57ba

Browse files
committed
add galaxyOnClick for translation issue banner
1 parent 097da01 commit b3d57ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/theme/DocItem/Layout/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import IconClose from "@theme/Icon/Close";
1717
import {useLocation} from "@docusaurus/router";
1818
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
1919
import RelatedBlogs from "../../../components/RelatedBlogs/RelatedBlogs";
20+
import {galaxyOnClick} from "../../../lib/galaxy/galaxy";
2021
/**
2122
* Decide if the toc should be rendered, on mobile or desktop viewports
2223
*/
@@ -90,6 +91,7 @@ export default function DocItemLayout({children}) {
9091
className={styles.docCloudClose}
9192
onClick={() => {
9293
setShowPopup(false)
94+
galaxyOnClick('docs.translationIssueBanner.buttonClick')
9395
window.localStorage.setItem('doc-translate-card-banner', 'closed')
9496
}}>
9597
<IconClose color="var(--ifm-color-emphasis-600)" width={10} height={10}/>

0 commit comments

Comments
 (0)