From 3df25d887a8e54899a9991049d21d049e4514616 Mon Sep 17 00:00:00 2001 From: Christine Belzie Date: Wed, 9 Aug 2023 22:30:49 -0400 Subject: [PATCH 1/3] fix: updated link --- .../AddPRToHighlightsButton.ts | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts index 16e436eb..1589914c 100644 --- a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts +++ b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts @@ -3,41 +3,43 @@ import openSaucedLogoIcon from "../../../assets/opensauced-icon.svg"; import { OPEN_SAUCED_INSIGHTS_DOMAIN } from "../../../constants"; export const AddPRToHighlightsButton = () => { - const addPRToHighlightsButton = createHtmlElement("a", { - id: "add-pr-to-highlights-button", - className: "relative cursor-pointer", - innerHTML: ` + const addPRToHighlightsButton = createHtmlElement("a", { + id: "add-pr-to-highlights-button", + className: "relative cursor-pointer", + innerHTML: ` `, - onclick: () => { - const menu = document.getElementById("details-menu-os"); + onclick: () => { + const menu = document.getElementById("details-menu-os"); - if (!menu) { - return; - } - menu.classList.toggle("hidden"); - }, - }); + if (!menu) { + return; + } + menu.classList.toggle("hidden"); + }, + }); - addPRToHighlightsButton.addEventListener("click", e => { - e.stopPropagation(); - }); + addPRToHighlightsButton.addEventListener("click", (e) => { + e.stopPropagation(); + }); - document.addEventListener("click", () => { - const menu = document.getElementById("details-menu-os"); + document.addEventListener("click", () => { + const menu = document.getElementById("details-menu-os"); - if (!menu) { - return; - } - menu.classList.add("hidden"); - }); + if (!menu) { + return; + } + menu.classList.add("hidden"); + }); - return addPRToHighlightsButton; + return addPRToHighlightsButton; }; From 0aa72c3fa643a6d898e1626a5ae8a5bd24998df7 Mon Sep 17 00:00:00 2001 From: Christine Belzie Date: Wed, 9 Aug 2023 23:49:32 -0400 Subject: [PATCH 2/3] fix: revise formatting --- .../AddPRToHighlightsButton.ts | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts index 1589914c..ed49eff1 100644 --- a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts +++ b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts @@ -3,43 +3,43 @@ import openSaucedLogoIcon from "../../../assets/opensauced-icon.svg"; import { OPEN_SAUCED_INSIGHTS_DOMAIN } from "../../../constants"; export const AddPRToHighlightsButton = () => { - const addPRToHighlightsButton = createHtmlElement("a", { - id: "add-pr-to-highlights-button", - className: "relative cursor-pointer", - innerHTML: ` + const addPRToHighlightsButton = createHtmlElement("a", { + id: "add-pr-to-highlights-button", + className: "relative cursor-pointer", + innerHTML: ` `, - onclick: () => { - const menu = document.getElementById("details-menu-os"); + onclick: () => { + const menu = document.getElementById("details-menu-os"); - if (!menu) { - return; - } - menu.classList.toggle("hidden"); - }, - }); + if (!menu) { + return; + } + menu.classList.toggle("hidden"); + }, + }); - addPRToHighlightsButton.addEventListener("click", (e) => { - e.stopPropagation(); - }); + addPRToHighlightsButton.addEventListener("click", e => { + e.stopPropagation(); + }); - document.addEventListener("click", () => { - const menu = document.getElementById("details-menu-os"); + document.addEventListener("click", () => { + const menu = document.getElementById("details-menu-os"); - if (!menu) { - return; - } - menu.classList.add("hidden"); - }); + if (!menu) { + return; + } + menu.classList.add("hidden"); + }); - return addPRToHighlightsButton; + return addPRToHighlightsButton; }; From 5642f512f42beed559b1a422dd89348ed63a4aa1 Mon Sep 17 00:00:00 2001 From: Christine Belzie <105683440+CBID2@users.noreply.github.com> Date: Fri, 11 Aug 2023 00:30:21 -0400 Subject: [PATCH 3/3] Update src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts Co-authored-by: Brian Douglas --- .../components/AddPRToHighlights/AddPRToHighlightsButton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts index ed49eff1..b5acc441 100644 --- a/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts +++ b/src/content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton.ts @@ -10,7 +10,7 @@ export const AddPRToHighlightsButton = () => { openSaucedLogoIcon, )}>